From 666053962b1d05829ddb9e06d770a299d0481c94 Mon Sep 17 00:00:00 2001 From: jstilley Date: Mon, 14 Oct 2024 10:00:42 -0700 Subject: [PATCH] Updating new to reviewer's request --- armi/reactor/assemblies.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/armi/reactor/assemblies.py b/armi/reactor/assemblies.py index bce1ecaf2..f2a277c3f 100644 --- a/armi/reactor/assemblies.py +++ b/armi/reactor/assemblies.py @@ -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 @@ -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] @@ -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]