tudat-team / tudatpy

A Python platform to perform astrodynamics and space research.

Home Page:https://tudat-space.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: mute std out/std err

gaffarelj opened this issue · comments

A class could be added in the utilities to silence any message that goes through std out and/or std err (both by default).
This can for instance be called using a with statement, encapsulating the simulation itself, so that any print message can be directly muted.

Implemented this in tudatpy.util.redirect_std, pushed in commit 7a14a0b.

Nice feature, thanks for proposing and adding it! Have you also added an API entry?

Yes I have, you can find the associated documentation here.