Skip to content

Commit

Permalink
Removing unused Block.coords argument rotationDegreesCCW
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science committed Feb 20, 2024
1 parent 571e4f5 commit aa736ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 2 additions & 8 deletions armi/reactor/blocks.py
Expand Up @@ -605,7 +605,7 @@ def getLocation(self):
else:
return "ExCore"

def coords(self, rotationDegreesCCW=0.0):
def coords(self):
"""
Returns the coordinates of the block.
Expand All @@ -617,11 +617,7 @@ def coords(self, rotationDegreesCCW=0.0):
method of the block's ``spatialLocator`` attribute, which recursively
calls itself on all parents of the block to get the coordinates of the
block's centroid in 3D cartesian space.
If ``rotationDegreesCCW`` is non-zero, an error is raised.
"""
if rotationDegreesCCW:
raise NotImplementedError("Cannot get coordinates with rotation.")
return self.spatialLocator.getGlobalCoordinates()

def setBuLimitInfo(self):
Expand Down Expand Up @@ -1677,7 +1673,7 @@ class HexBlock(Block):
def __init__(self, name, height=1.0):
Block.__init__(self, name, height)

def coords(self, rotationDegreesCCW=0.0):
def coords(self):
"""
Returns the coordinates of the block.
Expand All @@ -1692,8 +1688,6 @@ def coords(self, rotationDegreesCCW=0.0):
Will additionally adjust the x and y coordinates based on the block
parameters ``displacementX`` and ``displacementY``.
Note that the ``rotationDegreesCCW`` argument is unused.
"""
x, y, _z = self.spatialLocator.getGlobalCoordinates()
x += self.p.displacementX * 100.0
Expand Down
5 changes: 5 additions & 0 deletions doc/release/0.3.rst
Expand Up @@ -10,6 +10,11 @@ What's new in ARMI?
-------------------
#. TBD

API Changes
-----------
#. Renaming ``structuredgrid.py`` to camelCase. (`PR#1650 <https://github.com/terrapower/armi/pull/1650>`_)
#. TBD

Bug Fixes
---------
#. TBD
Expand Down

0 comments on commit aa736ca

Please sign in to comment.