Replies: 1 comment 2 replies
-
|
My take is that there was no |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I stumbled on this weird quirk working on assembly rotation: If I deepcopy a block with a grid and grab the same component from the original and copied block, their locations will not be equal. In testing, I got weird errors like
which is confusing at first. These are both the center location on a hexagonal grid of the same pitch. Their locations should compare equal?
Turns out, two locations must have the exact same grid object attached, not an equivalent grid
armi/armi/reactor/grids/locations.py
Lines 100 to 109 in c6f46e5
Would it make sense to have the check on grids be
self.grids == other.grids? We don't currently provideGrid.__eq__so that'd be a needBeta Was this translation helpful? Give feedback.
All reactions