Skip to content

Commit

Permalink
fix line lengths for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
albeanth committed Apr 19, 2024
1 parent a8cef20 commit 80781b6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
Expand Up @@ -171,8 +171,8 @@ def _determineLinked(componentA, componentB):
Notes
-----
- Requires that shapes have the getCircleInnerDiameter and getBoundingCircleOuterDiameter defined
- For axial linkage to be True, components MUST be solids, the same Component Class, multiplicity, and meet inner
and outer diameter requirements.
- For axial linkage to be True, components MUST be solids, the same Component Class, multiplicity, and meet
inner and outer diameter requirements.
- When component dimensions are retrieved, cold=True to ensure that dimensions are evaluated
at cold/input temperatures. At temperature, solid-solid interfaces in ARMI may produce
slight overlaps due to thermal expansion. Handling these potential overlaps are out of scope.
Expand Down
Expand Up @@ -333,7 +333,8 @@ def axiallyExpandAssembly(self):
b.p.z = b.p.zbottom + b.getHeight() / 2.0

self._checkBlockHeight(b)
# call component.clearCache to update the component volume, and therefore the masses, of all solid components.
# call component.clearCache to update the component volume,
# and therefore the masses, of all solid components.
for c in getSolidComponents(b):
c.clearCache()
# redo mesh -- functionality based on assembly.calculateZCoords()
Expand Down
10 changes: 8 additions & 2 deletions armi/reactor/converters/axialExpansion/expansionData.py
Expand Up @@ -77,12 +77,18 @@ def setExpansionFactors(self, componentLst: List, expFrac: List):
)
raise RuntimeError
if 0.0 in expFrac:
msg = "An expansion fraction, L1/L0, equal to 0.0, is not physical. Expansion fractions should be greater than 0.0."
msg = (
"An expansion fraction, L1/L0, equal to 0.0, is not physical. "
"Expansion fractions should be greater than 0.0."
)
runLog.error(msg)
raise RuntimeError(msg)
for exp in expFrac:
if exp < 0.0:
msg = "A negative expansion fraction, L1/L0, is not physical. Expansion fractions should be greater than 0.0."
msg = (
"A negative expansion fraction, L1/L0, is not physical. "
"Expansion fractions should be greater than 0.0."
)
runLog.error(msg)
raise RuntimeError(msg)
for c, p in zip(componentLst, expFrac):
Expand Down
Expand Up @@ -628,7 +628,7 @@ def test_coldAssemblyExpansion(self):
def checkColdHeightBlockMass(
self, bStd: HexBlock, bExp: HexBlock, flagType: Flags, nuclide: str
):
"""Checks that nuclide masses for blocks with input cold heights and "inputHeightsConsideredHot": True are underpredicted.
"""Ensures nuclide masses are underpredicted when input cold heights and "inputHeightsConsideredHot": True.
Notes
-----
Expand Down

0 comments on commit 80781b6

Please sign in to comment.