def test_interactBOC(self): o, r = loadTestReactor() repInt = reportInterface.ReportInterface(r, o.cs) self.assertEqual(repInt.fuelCycleSummary["bocFissile"], 0.0) repInt.interactBOC(1) self.assertEqual(repInt.fuelCycleSummary["bocFissile"], 0.0)
def test_printReports(self): """testing printReports method""" repInt = reportInterface.ReportInterface(None, None) rep = repInt.printReports() self.assertIn("REPORTS BEGIN", rep) self.assertIn("REPORTS END", rep)
def test_interactEOL(self): o, r = loadTestReactor() repInt = reportInterface.ReportInterface(r, o.cs) with mockRunLogs.BufferLog() as mock: repInt.interactEOL() self.assertIn("Comprehensive Core Report", mock._outputStream) self.assertIn("Assembly Area Fractions", mock._outputStream)
def test_interactEOC(self): o, r = loadTestReactor() repInt = reportInterface.ReportInterface(r, o.cs) with mockRunLogs.BufferLog() as mock: repInt.interactEOC(0) self.assertIn("Cycle 0", mock._outputStream) self.assertIn("TIMER REPORTS", mock._outputStream)
def test_printReports(self): """testing testing :ref:`REQ86d884bb-6133-4078-8804-5a334c935338` """ from armi.bookkeeping.report import reportInterface repInt = reportInterface.ReportInterface(None, None) repInt.printReports()
def test_interactEveryNode(self): o, r = loadTestReactor() repInt = reportInterface.ReportInterface(r, o.cs) with mockRunLogs.BufferLog() as mock: repInt.interactEveryNode(0, 0) self.assertIn("Cycle 0", mock._outputStream) self.assertIn("node 0", mock._outputStream) self.assertIn("keff=", mock._outputStream)
def test_printReports(self): """testing testing :ref:`REQ86d884bb-6133-4078-8804-5a334c935338` """ repInt = reportInterface.ReportInterface(None, None) rep = repInt.printReports() self.assertIn("REPORTS BEGIN", rep) self.assertIn("REPORTS END", rep)
def test_interactBOLReportInt(self): o, r = loadTestReactor() repInt = reportInterface.ReportInterface(r, o.cs) with mockRunLogs.BufferLog() as mock: repInt.interactBOL() self.assertIn("Writing assem layout", mock._outputStream) self.assertIn("BOL Assembly", mock._outputStream) self.assertIn("wetMass", mock._outputStream) self.assertIn("moveable plenum", mock._outputStream)
def summarizeDesign(self, generateFullCoreMap=True, showBlockAxialMesh=True): """Uses the ReportInterface to create a fancy HTML page describing the design inputs.""" settings.setMasterCs(self.cs) o = self.initializeOperator() with DirectoryChanger(self.cs.inputDirectory): # There are global variables that are modified when a report is # generated, so reset it all six.moves.reload_module(report) # pylint: disable=too-many-function-args self.cs.setSettingsReport() rpi = o.getInterface("report") if rpi is None: rpi = reportInterface.ReportInterface(o.r, o.cs) rpi.generateDesignReport(generateFullCoreMap, showBlockAxialMesh) report.DESIGN.writeHTML() runLog.important("Design report summary was successfully generated")
def test_writeReports(self): """Test writing html reports.""" repInt = reportInterface.ReportInterface(None, None) repInt.writeReports()
def test_writeReports(self): """Test writing html reports.""" from armi.bookkeeping.report import reportInterface repInt = reportInterface.ReportInterface(None, None) repInt.writeReports()
def test_distributableReportInt(self): repInt = reportInterface.ReportInterface(None, None) self.assertEqual(repInt.distributable(), 4)