terrapower / armi

An open-source nuclear reactor analysis automation framework that helps design teams increase efficiency and quality
https://terrapower.github.io/armi/
Apache License 2.0
216 stars 87 forks source link

Clean up the Reporting Tools #793

Open john-science opened 2 years ago

john-science commented 2 years ago

At some point, @youngmit and @chris10mckenz built some new reporting tools. Awesome!

However, the project seems to be left unfinished, as we have the old reporting tools:

But we also have the new reporting tools:

So, obviously, having the word "new" on those file indefinitely seems silly. But, more so, it would be 100% easier for ARMI users if we had one set of reporting tools, and not two completely independent ones.

There might have to be some survey of how our community uses our various reporting tools to do this work. But it is worth doing.

ntouran commented 2 years ago

Ah, reporting. Yeah we should definitely merge and clean as appropriate. As we clean this up, it might make sense to have armi define some data structures that plugins can pass around with intent to report, and leave users the option to render reports with whatever reporting technology they want, given a bunch of packaged report data structures.

john-science commented 1 year ago

As a first step to the "merge and clean the reporting tools", I have moved all the "newReport" tools into the "reporting" package.

https://github.com/terrapower/armi/pull/867

Honestly, I don't know why the new stuff wasn't there to begin with.

john-science commented 1 year ago

I also note that armi/utils/reportPlotting.py imports extensively from the "old" armi reports tools.

I was also able to find downstream projects using:

So, actually, outside of ARMI, I think the direction import usage of our reporting tools are pretty minor. Mostly, we just have to support he above few things. And most of the work will be reorganzing our internal usage.

john-science commented 1 year ago

Also, happily, I couldn't find anyone outside of ARMI using the "newReport" tools. So, we can change that dubious name to something else with ease.