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
Refactor Axial Expansion #1435
base: main
Are you sure you want to change the base?
Refactor Axial Expansion #1435
Conversation
…asses into their own files, and move a few methods onto __init__.py.
…ineLinked a static method
- also improve the frequency in which the runLogs get hit
|
Yes. I will add one once we get further into the review.
The API actually should not have changed at all actually. At least not to that I can remember off the top of my head. I am going to run this on the slough of internal tests though to confirm. |
The API for unit testing did change. And the refactor changed some imports downstream. So there is an another (minor) downstream PR. |
@john-science @keckler giving a bump on this. just started doing QA work for the axial expansion changer and it would be really nice to push this through. the improved unit testing and accompanying refactor will help keep things clean imo. happy to chat offline too. |
Put something on my calendar for this, @albeanth |
I'll put something on your calendar for next week. Some of the downstream testing is freaking out. I have no idea why and don't have enough time to figure it out this week unfortunately... |
""" | ||
Ensures that target components can be manually set (is done in practice via blueprints). | ||
|
||
.. test:: Allow user-specified target axial expansion components on a given block. |
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.
Note to reviewers: this was moved to test_expansionData.py
@john-science an update -- this PR is blocked by some downstream work but is in line to be completed. Fingers crossed it's finished soon! |
What is the change?
This PR does a fairly large refactor of the axial expansion functionality in ARMI. A new directory is structure is created to enable better traceability with testing and general maintainability.
Original:
and unit tests:
New:
and unit tests
Notes:
This does include the changes from PR #1427.
Why is the change being made?
axialExpansionChanger.py
file was responsible for too many things. It was ready to be split up to improve maintainability.test_axialExpansionChanger.py
was likewise too big and doing too much. It has now been split up and is easier to maintain.Checklist
doc/release/0.X.rst
) are up-to-date with any important changes.doc
folder.pyproject.toml
.