Skip to content

Commit

Permalink
Merge 9378ac5 into ecc1dbb
Browse files Browse the repository at this point in the history
  • Loading branch information
ntouran committed Jul 12, 2022
2 parents ecc1dbb + 9378ac5 commit 63d76a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion armi/nuclearDataIO/xsCollections.py
Expand Up @@ -900,7 +900,7 @@ def _getMicroGroupConstants(libNuclide, constantName, nuclideName, libType):

if not microGroupConstants.any():
runLog.debug(
"Nuclide {} does no have {} microscopic group constants.".format(
"Nuclide {} does not have {} microscopic group constants.".format(
nuclideName, constantName
),
single=True,
Expand Down
5 changes: 5 additions & 0 deletions armi/reactor/blocks.py
Expand Up @@ -1596,6 +1596,11 @@ def setPinPowers(self, powers, powerKeySuffix=""):
This method can handle assembly rotations by using the *pinLocation* parameter.
"""
numPins = self.getNumPins()
if not numPins or numPins != len(powers):
raise ValueError(
f"Invalid power data for {self} with {numPins} pins."
f" Got {len(powers)} entries in powers: {powers}"
)

powerKey = f"linPowByPin{powerKeySuffix}"
self.p[powerKey] = numpy.zeros(numPins)
Expand Down

0 comments on commit 63d76a2

Please sign in to comment.