-
Notifications
You must be signed in to change notification settings - Fork 94
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
Improving getOptimalAssemblyOrientation #2019
Merged
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
f829b80
Fix getOptimalAssemblyOrientation
drewj-tp 3520838
Expand test_oppositeRotation to all six configurations
drewj-tp c39e2aa
Update optimal assembly rotation to more robustly handle and test dif…
drewj-tp bd3f5fc
Require shuffled block to have a spatial grid when rotating
drewj-tp f3dfc50
Test requirement on optimal rotation needing consistent pin powers an…
drewj-tp 3b8ef76
Fuel handler rotation test points to mocked optimal rotation
drewj-tp ec55273
Add requirement test and implementation notes for equalizing burnup r…
drewj-tp ef2e6fc
Use dict of ij to powers in optimal assembly orientation
drewj-tp b0db853
Add comment to confusing fuel handlers test
drewj-tp 5272267
Cleaner handling of different rotation signatures
drewj-tp a0bb7ee
buReducingAssemblyRotation handles fresh assemblies better
drewj-tp 3682c0d
Remove commented out import from assemblyRotationAlgorithms
drewj-tp a64332f
Put max burnup fuel pin location in fuelCycle/utils.py
drewj-tp f72cd62
Remove need for history interface in burnup equalizing rotation
drewj-tp 9d4b0bc
Check against Component.p.pinPercentBu for burnup equalizing rotation
drewj-tp 59b1eb4
Better comment for skipping aPrev not in core in rotation
drewj-tp fb7eb4c
Dont try to check burnup on new assembly if fresh from load queue
drewj-tp 1bfcc39
Better usage of Component.p.pinPercentBu in finding max burnup block …
drewj-tp a965f2b
Update fuel handler test to use Comp.p.pinPercentBu
drewj-tp 523af1f
Remove rotation-related usage on block burnup parameters
drewj-tp c181d90
Clean up clean up everybody do your share
drewj-tp f19c959
Round degrees in log statement about rotated assemblies
drewj-tp 258a100
Add debug statements to burnup rotation
drewj-tp cace951
Improve fresh feed test
drewj-tp ee89d75
Don't rotate assemblies until all assembly rotations have been determ…
drewj-tp 2db8643
Hopefully improve readability of fuel cycle fuel pin checks
drewj-tp 48ce1ed
Expand FuelHandler testing to encompass stationary rotation
drewj-tp 21ba4cb
Doc fixup for getOptimalAssemblyOrientation
drewj-tp 1c12db1
More helpful error message in maxBurnupLocator
drewj-tp f46ea22
Correct N_PINS in FuelCycleUtilsTests
drewj-tp bb1a8da
Refactor burnup rotation test with a shuffled queue case
drewj-tp 7410094
Testing for two errors in fuel cycle maxBurnupLocator
drewj-tp ad1d9de
Add a clad to the fake block in fuel cycle utils testing
drewj-tp 2ad70b6
Add testing for fuelCycle utils maxBurnupBlock
drewj-tp b258ec6
fuelCycle.utils.maxBurnupBlock uses Block.p.percentBuPeak
drewj-tp ff904c4
Drop Block.p.percentBuMax and percentBuMaxPinLocation
drewj-tp 0c3bac5
Type hint return on defineParameterRenames hookspec
drewj-tp bb6dee9
Sort some imports
drewj-tp b1befee
Unify convoluted fuel handler invocation of rotation algorithm
drewj-tp 039373f
Revert "Drop Block.p.percentBuMax and percentBuMaxPinLocation"
drewj-tp d486f6c
Revert "Type hint return on defineParameterRenames hookspec"
drewj-tp ca62930
Update armi/physics/fuelCycle/tests/test_assemblyRotationAlgorithms.py
drewj-tp 596b7ca
Indicate that fuelCycle/utils.py is for pin-type reactors
drewj-tp 69519ad
Merge remote-tracking branch 'origin/main' into drewj/bu-rotate-with-…
drewj-tp 12f51aa
Merge remote-tracking branch 'origin/main' into drewj/bu-rotate-with-…
drewj-tp e319100
Remove debug statements from getOptimalAssemblyOrientation
drewj-tp 52ec5d8
Use runLog.error and exceptions in getOptimalAssemblyOrientation
drewj-tp 730f7d1
Update release notes
drewj-tp 159f476
Make PinLocations test util private
drewj-tp 40754b2
Apply suggestions from code review
drewj-tp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.
We don't have to do this exactly, but there is a lot of stuff happening in this function, so I am just trying to make it a touch easier to read.
Your call.
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.
If it's my call, I'm going to forgo this and similar requests.
I get readability through comments. I've also seen comments rot as the code changes while comments are not updated accordingly. So I'm inclined to have more verbose variable names and functions over comments. To hopefully help explain things.
maxBuPinLocation
feels to me like a thing that tells us where the pin with the highest burnup can be foundIt's very much a personal stance of mine that, if I'm left to decide, I'm going to lean on fewer comments but more descriptive docstrings and verbose variables/functions
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.
Okay, that's fine.
That's not the M.O. for ARMI though. I don't particularly feel that docstrings are less likely to go out of date than comments. And without your docstring, this function's logic would be too complicated for someone to read at a glance. That's really my problem, I don't want some poor engineer to come to this function in 3 years and have to puzzle out this important logic on their own.
To that end, the docstring can stand as sufficient.