-
Notifications
You must be signed in to change notification settings - Fork 641
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
merge meep::quiet and fields::verbose into a single meep::verbosity #994
Conversation
The following error appears when I use
Also, the following error appears whenever I use
|
The function is
|
The same error occurs with
|
mp.cvar.verbose = int(not quietval) | ||
|
||
def verbosity(verbose_val): | ||
mp.cvar.verbose = verbose_val |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be Nevermind, this was also fixed by 55a67ae. However, the error persists even with this commit.mp.cvar.verbosity = verbose_val
.
…anoComp#994) * merge meep::quiet and fields::verbose into a single meep::verbosity * fix Python references to cvar.quiet
The problem with
fields::verbosity
was that it was not available instructure
etcetera, andmeep::quiet
is not fine-grained enough to specify ordinary output vs. extra debugging output. This PR merges both into a singlemeep::verbosity
global integer:0
is quiet mode,1
(the default) is ordinary output, and2
is extra debugging output.The Python
meep.quiet()
function still works and setsverbosity
to0
, and now there is a lower-levelmeep.verbosity(value)
routine that you can use to set theverbosity
level explicitly.