Skip to content

Commit

Permalink
Updating new to reviewer's request
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science committed Oct 14, 2024
1 parent 4a83485 commit 6660539
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions armi/reactor/assemblies.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def makeUnique(self):
self.p.assemNum = randint(-9000000000000, -1)
self.renumber(self.p.assemNum)

def _checkBlockType(self, obj: blocks.Block, action: str = "add"):
def _checkPotentialChild(self, obj: blocks.Block, action: str = "add"):
"""An internal helper method to ensure the Block type is valid for this Assembly."""
if self._BLOCK_TYPE is None or isinstance(obj, self._BLOCK_TYPE):
# this is the right Block, pass on
Expand Down Expand Up @@ -190,7 +190,7 @@ def add(self, obj: blocks.Block):
are updated. The axial mesh and other Block geometry parameters are
updated in ``calculateZCoords``.
"""
self._checkBlockType(obj, "add")
self._checkPotentialChild(obj, "add")
composites.Composite.add(self, obj)
obj.spatialLocator = self.spatialGrid[0, 0, len(self) - 1]

Expand All @@ -200,7 +200,7 @@ def add(self, obj: blocks.Block):

def insert(self, index, obj):
"""Insert an object at a given index position with the assembly."""
self._checkBlockType(obj, "insert")
self._checkPotentialChild(obj, "insert")
composites.Composite.insert(self, index, obj)
obj.spatialLocator = self.spatialGrid[0, 0, index]

Expand Down

0 comments on commit 6660539

Please sign in to comment.