-
Notifications
You must be signed in to change notification settings - Fork 161
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
Add ShowUsedInfoClasses #3379
Comments
I am not sure I understand; in which setting would this be useful? Is the idea that one wants to figure out which InfoClasses might affect a certain command, so then before running the command, one would do I feel this kind of information should be part of the documentation, and perhaps even a brief example (could be fake). |
Good plan. Add to end of documentation: This can be used to find the Info classes which are considered when running any pieces of GAP code.
|
I take it that the actual info statements will still get printed, too? (of course, only those with a low enough level). |
Yes, this won't effect the outputting of Info statements, just let you know what could have been printed. |
It would require to implement some bookkeeping, but could make the output less verbose: do not repeat same combinations of the class and level, they will not add anything new. The example above has this line twice
while one line would suffice. |
Woops, that was a cut+paste mistake, I haven't actually written the code yet, and meant to have no repeats :) |
This was suggested at GAP Days in Halle , and I think it's a good idea to find out what Info levels exist, and which algorithms they will are used in. I thought I'd suggest it before I wrote it, just in case anyone had any deep opinions. In an experiment, here is the suggested documentation :)
ShowUsedInfoClasses( bool )
Called with argument 'true', ShowUsedInfoClasses makes GAP print the InfoClass and level of any executed Info statement. Calling ShowUsedInfoClasses with the argument 'false' stops this information being printed.
Each level of each InfoClass is only printed once. The list of printed InfoClasses and levels is reset by calling ShowUsedInfoClasses(true).
The text was updated successfully, but these errors were encountered: