Skip to content

Commit

Permalink
Single line skip for scalars and not-defined unrotatable pin data
Browse files Browse the repository at this point in the history
  • Loading branch information
drewj-tp committed Sep 20, 2024
1 parent f0b9c1b commit 82f11de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions armi/reactor/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2186,9 +2186,8 @@ def _rotatePinParameters(self, rotNum: int):
if isinstance(original, (list, np.ndarray)):
newData = hexagon.rotateHexCellData(original, nPins, rotNum)
self.p[name] = newData
elif isinstance(original, (int, float)):
pass
elif original is None:
# Doesn't make sense to rotate scalar data nor data that isn't defined
elif isinstance(original, (int, float)) or original is None:
pass
else:
raise TypeError(f"{name=} :: {original=}")
Expand Down

0 comments on commit 82f11de

Please sign in to comment.