-
Notifications
You must be signed in to change notification settings - Fork 87
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
Use a more robust method for determining number of pins in HexBlock._rotatePins()
#1859
Conversation
Note that I just realized #1846 will make |
The
Which feels like overkill to emulate rotating every single pin in a block just to see where one pin would end up. So I put some of the code in If there are other needs for |
Marking this as draft until #1846 is merged; this PR will be updated after that |
after #1846 made However, I think it could still be worthwhile to make the determination of the number of pins more robust. Lines 1047 to 1079 in abd1db4
Is there any reason not to use Line 2141 in abd1db4
|
block.rotatePins()
to take an optional numPins
argumentHexBlock._rotatePins()
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 update the PR description accordingly? The Block.rotatePins
method has been removed, but the PR description discusses changes to it
…into rotatePins_update
What is the change?
Use
block.getNumPins()
instead of countingFlags.CLAD
components. Round this number up to a number of pins that fits exactly into a regular hex lattice.Why is the change being made?
Flags.CLAD
components on a block will not always be equal to the number of pins (e.g., a solid steel reflector slug)Checklist
doc
folder.pyproject.toml
.