Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
albeanth committed Mar 18, 2022
1 parent e7eb27d commit 524ee5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions armi/materials/fakeMaterial.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
from armi.materials.ht9 import HT9
from armi.utils import units


class Fake(HT9):
"""
Fake material based on HT9, used to verify
assembly axial expansion
"""

name = "Fake"

def __init__(self):
Expand All @@ -15,13 +17,15 @@ def __init__(self):
def linearExpansionPercent(self, Tk=None, Tc=None):
""" A fake linear expansion percent"""
Tc = units.getTc(Tc, Tk)
return 0.02*Tc
return 0.02 * Tc


class FakeException(HT9):
"""
Fake material based on HT9, used to verify exceptions
in assembly axial expansion
"""

name = "FakeException"

def __init__(self):
Expand All @@ -30,4 +34,4 @@ def __init__(self):
def linearExpansionPercent(self, Tk=None, Tc=None):
""" A fake linear expansion percent"""
Tc = units.getTc(Tc, Tk)
return 0.08*Tc
return 0.08 * Tc
1 change: 1 addition & 0 deletions armi/reactor/converters/tests/test_meshConverters.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def test_meshByRingCompositionAxialCoordinatesLargeCore(self):
self.assertListEqual(meshConvert.axialMesh, expectedAxialMesh)
self.assertListEqual(meshConvert.thetaMesh, expectedThetaMesh)


if __name__ == "__main__":
# import sys;sys.argv = ['', 'TestRZReactorMeshConverter.test_meshByRingCompositionAxialBinsSmallCore']
unittest.main()

0 comments on commit 524ee5f

Please sign in to comment.