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
Remove deprecated core param, fixing optional history. #1451
base: main
Are you sure you want to change the base?
Remove deprecated core param, fixing optional history. #1451
Conversation
armi/utils/reportPlotting.py
Outdated
@@ -267,24 +267,24 @@ def buVsTime(name, scalars, extension=None): | |||
report.setData("Burnup Plot", os.path.abspath(figName), report.BURNUP_PLOT) | |||
|
|||
|
|||
def xsHistoryVsTime(name, history, buGroups, extension=None): |
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.
I'm sorry, but let's not make this change.
This changes the API of ARMI. And, as you can see, that breaks unit tests.
But, more importantly:
- People would have to make changes to downstream repos to match the new UI.
- And it's not related at all to your "eFuelCycleCost" change above.
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.
@cbroman-usnctech Thoughts?
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.
@john-science sorry for the delay, priorities were shifted. Ok, with me, the refactor was too much. I pushed these changes.
The error I see in your logs is this one:
This look suspiciously like an ARMI error from some days/weeks ago. But that was fixed. My guess is that if you merge main into your branch, this problem will go away: git checkout main
git pull origin main
git checkout fix-plotReactorPerformance
git merge main
git push origin fix-plotReactorPerformance |
Thanks @john-science the tests were failing locally for me because I my version of h5py was throwing an |
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.
removing refactor, spell checking
I keep thinking "tomorrow" will be the day we're out of code freeze. Sorry. As you can see, the ARMI version was bumped to https://github.com/terrapower/armi/releases I am really hoping that happens soon, so I can start ARMI moving again. |
What is the change?
The plotting utility function armi.utils.reportPlottings:plotReactorPerformance has a deprecated variable named
eFuelCycleCost
. This PR removes it and also updated the history variable so that it doesn't failxsHistoryVsTime
when thehistory
variable equals the default value ofNone
The plotting utility function armi.utils.reportPlottings:plotReactorPerformance has an outdated Reactor parameter named eFuelCycleCost causing getHistory function to fail. On line 70.
plotReactorPerformance also has an input argument named history which defaults to None. This variable is passed to the function xsHistoryVsTime as a required parameter on line 117.
xsHistoryVsTime(reactor.name, history, buGroups, extension=extension)
Why is the change being made?
Fixing plotReactorPerformance
The method has deprecated variable, and doesnt handle default history value.
#1450
Checklist
doc/release/0.X.rst
) are up-to-date with any important changes.doc
folder.pyproject.toml
.