示例#1
0
文件: __init__.py 项目: pxm321/armi
 def __init__(self):
     # again, yamlize does not call __init__, instead we use Blueprints.load which
     # creates and instance of a Blueprints object and initializes it with values
     # using setattr. Since the method is never called, it serves the purpose of
     # preventing pylint from issuing warnings about attributes not existing.
     self._assembliesBySpecifier = {}
     self._prepped = False
     self.systemDesigns = Systems()
     self.assemDesigns = AssemblyKeyedList()
     self.blockDesigns = BlockKeyedList()
     self.assemblies = {}
     self.grids = Grids()
     self.elementsToExpand = []
示例#2
0
 def setUp(self):
     self.grids = Grids.load(RZT_BLUEPRINT)
示例#3
0
 def test_roundTrip(self):
     stream = io.StringIO()
     saveToStream(stream, self.grids, False, True)
     stream.seek(0)
     gridBp = Grids.load(stream)
     self.assertIn("third", gridBp["core"].symmetry)
示例#4
0
 def setUp(self):
     self.grids = Grids.load(LATTICE_BLUEPRINT.format(self._testMethodName))
示例#5
0
 def setUp(self):
     self.grids = Grids.load(SMALL_HEX)