-
Notifications
You must be signed in to change notification settings - Fork 92
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
Transposing pinMgFluxes so that the leading dimension represents pin index #1937
Transposing pinMgFluxes so that the leading dimension represents pin index #1937
Conversation
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.
Can you add a test for this method? We don't have any tests for it here, or else they would also likely need to be updated.
Understanding you were likely not the original author of this method. But it would be great to demonstrate that Block.setPinMgFluxes
does what we want
c1fa446
to
ab569d1
Compare
Good suggestion. I modified the original test to be a bit more robust and actually show that the indexing is correct. |
I still think this is a good change. But now that #1860 is closed and we're not rotating the parameter data vectors anymore, this is less vital. Good, but it does not impact the assembly rotation logic. So long as the structure of the data array is documented |
I would like to keep this change since it makes sense to me, regardless of its impact. |
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'll be sure to come back to this in light of the pinLocation
related changes in #1939. But the transposition looks good!
Thanks for the tests too
* origin/main: Relaxing copyInterfaceInputs to not require a valid Setting (#1934) Moving C5G7 into its own test dir (#1941) Transposing pinMgFluxes so that the leading dimension represents pin index (#1937) Moving Core class to its own module (#1938) Removing unusable buildEqRingSchedule (#1928) Raising Error when loading inconsistent data from DB (#1940) Ensuring we only calculate smear density for pinned blocks (#1933) Update rotation requirement impl, tag links: Hex specific (#1936) Adding support for ex-core structures (#1891) Fixing edge case in assemblyBlueprint._checkParamConsistency (#1929)
What is the change?
blocks.Block.setPinMgFluxes
so the parameters get set assuming the leading dimension is pin indexWhy is the change being made?
This is in support of #1860 where it would be easier to rotate pin parameters if they were all consistent on which dimension represents the pin index.
Checklist
doc
folder.pyproject.toml
.