Skip to content

Commit

Permalink
Update rotation requirement impl, tag links: Hex specific (#1936)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewj-tp authored Oct 8, 2024
1 parent 60b0dbf commit 83f880f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions armi/reactor/assemblies.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,15 +1237,6 @@ def rotate(self, rad):
Each Block on the Assembly is rotated in turn.
.. impl:: An assembly can be rotated about its z-axis.
:id: I_ARMI_SHUFFLE_ROTATE
:implements: R_ARMI_SHUFFLE_ROTATE
This method loops through every ``Block`` in this ``Assembly`` and rotates
it by a given angle (in radians). The rotation angle is positive in the
counter-clockwise direction. To perform the ``Block`` rotation, the
:py:meth:`armi.reactor.blocks.Block.rotate` method is called.
Parameters
----------
rad: float
Expand All @@ -1266,6 +1257,15 @@ class HexAssembly(Assembly):
def rotate(self, rad: float):
"""Rotate an assembly and its children.
.. impl:: A hexagonal assembly shall support rotating around the z-axis in 60 degree increments.
:id: I_ARMI_ROTATE_HEX
:implements: R_ARMI_ROTATE_HEX
This method loops through every ``Block`` in this ``HexAssembly`` and rotates
it by a given angle (in radians). The rotation angle is positive in the
counter-clockwise direction. To perform the ``Block`` rotation, the
:meth:`armi.reactor.blocks.HexBlock.rotate` method is called.
Parameters
----------
rad : float
Expand Down
4 changes: 2 additions & 2 deletions armi/reactor/tests/test_assemblies.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,8 +1026,8 @@ def test_rotate(self):
"""Test rotation of an assembly spatial objects.
.. test:: An assembly can be rotated about its z-axis.
:id: T_ARMI_SHUFFLE_ROTATE
:tests: R_ARMI_SHUFFLE_ROTATE
:id: T_ARMI_ROTATE_HEX
:tests: R_ARMI_ROTATE_HEX
"""
a = makeTestAssembly(1, 1)
b = blocks.HexBlock("TestBlock")
Expand Down

0 comments on commit 83f880f

Please sign in to comment.