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
Axial Expansion Changer + verbosity: debug #1048
Comments
Fun Fact: I built some tooling so that you can force a log line to only ever be printed the first time, and not repeatedly: Line 509 in d3889e0
We use it in several places now: armi/armi/materials/thoriumOxide.py Lines 42 to 46 in d3889e0
So... how about that? The only real downside is we shouldn't do this EVERYWHERE, because the logger code would constantly be comparing thousands of strings. Still, if there is a single eye-sore debug log, this is an easy win. |
I'm currently helping debug a downstream ARMI project with I think the Ultimately, I think there is value in the axial expansion changer printing info at the component level, but having to parse through 10s of thousands of lines just isn't sustainable. This needs a new solution and it might be to hack back how much is actually getting printed or being smarter about it. |
I think something like a try/else statement wrapped around
might be reasonable. So if a given assembly fails during expansion for whatever reason, then we can print relevant information to the runLog that has been stored. That way during a debug run we are always collecting the relevant information, but not just printing it full bore for every single component for every single assembly, but rather only if an assembly fails in the expansion routine. |
@albeanth This ticket is still assigned to you. That's cool with me, but if you aren't planning on working on it, please un-assign it. (You are not being singled out, I am going through all the ARMI tickets.) |
Just un-assigned myself so someone else can work on it if they'd like. |
When the verbosity is set to debug, too much information is printed to the screen. It really clutters up the stdout. This is particularly true for:
armi/armi/reactor/converters/axialExpansionChanger.py
Lines 425 to 442 in 6bd85c6
armi/armi/reactor/converters/axialExpansionChanger.py
Lines 479 to 498 in 6bd85c6
These are indeed useful but they print way too many times and after the first time they are printed, they are just a nuisance.
The text was updated successfully, but these errors were encountered: