Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: mute std out/std err #29

Closed
gaffarelj opened this issue Dec 25, 2021 · 3 comments
Closed

Feature request: mute std out/std err #29

gaffarelj opened this issue Dec 25, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@gaffarelj
Copy link
Member

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.

@gaffarelj gaffarelj added the enhancement New feature or request label Dec 25, 2021
@gaffarelj gaffarelj self-assigned this Dec 25, 2021
@gaffarelj
Copy link
Member Author

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

@DominicDirkx
Copy link
Member

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

@gaffarelj
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants