Exemple #1
0
    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)
Exemple #2
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)
Exemple #3
0
    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)
Exemple #4
0
    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)
Exemple #5
0
    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()
Exemple #6
0
    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)
Exemple #7
0
    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)
Exemple #8
0
    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)
Exemple #9
0
    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")
Exemple #10
0
 def test_writeReports(self):
     """Test writing html reports."""
     repInt = reportInterface.ReportInterface(None, None)
     repInt.writeReports()
Exemple #11
0
    def test_writeReports(self):
        """Test writing html reports."""
        from armi.bookkeeping.report import reportInterface

        repInt = reportInterface.ReportInterface(None, None)
        repInt.writeReports()
Exemple #12
0
 def test_distributableReportInt(self):
     repInt = reportInterface.ReportInterface(None, None)
     self.assertEqual(repInt.distributable(), 4)