Skip to content

Commit

Permalink
remove bad variable default, minor efficiency improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
bsculac committed Dec 6, 2024
1 parent 19bb4fb commit 29e75a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions armi/reactor/assemblies.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ def moveTo(self, locator):
self.clearCache()
self.scaleParamsToNewSymmetryFactor(oldSymmetryFactor)

def scaleParamsToNewSymmetryFactor(self, oldSymmetryFactor=1.0):
volIntegratedParamsToScale = self.getBlocks()[0].p.paramDefs.atLocation(
ParamLocation.VOLUME_INTEGRATED
)
def scaleParamsToNewSymmetryFactor(self, oldSymmetryFactor):
scalingFactor = oldSymmetryFactor / self.getSymmetryFactor()
if scalingFactor == 1:
return # noop
volIntegratedParamsToScale = self.getBlocks()[0].p.paramDefs.atLocation(
ParamLocation.VOLUME_INTEGRATED
)
for b in self.getBlocks():
for param in volIntegratedParamsToScale:
name = param.name
Expand Down

0 comments on commit 29e75a8

Please sign in to comment.