-
Notifications
You must be signed in to change notification settings - Fork 632
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
meep avoid uncessary outputs whe importing library #2421
Comments
I don't think there is a way right now to disable this, as it is automatically called upon initialization. In the past, I have just commented these lines locally or resorted to stdout hacks like this one. Maybe meep could check for environment variables or some global config on initialization, something like Another idea would be to use logging and replace all the prints scattered throughout the code (the adjoint module also does this without a way to disable it). This would probably be a useful thing to do anyways and could be neatly integrated with the existing verbosity system. |
So as you know, meep has a An env variable may be worth it just for the mpi output (it's certainly easy to implement and add upstream). You'd have to set this env variable in gdsfactory, as we'd probably want the default behavior to stay consistent with You want to throw a quick PR together and we can see how it fits? |
Regarding the adjoint solver verbosity - it's trivial to add a check for |
How can we make meep MPI message not printing the MPI version?
every time we import meep it creates MPI output into stdout, how can we remove it?
The text was updated successfully, but these errors were encountered: