コード例 #1
0
ファイル: test_report.py プロジェクト: ntouran/armi
    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)
コード例 #2
0
ファイル: test_report.py プロジェクト: ntouran/armi
    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)
コード例 #3
0
ファイル: test_report.py プロジェクト: ntouran/armi
    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)
コード例 #4
0
ファイル: test_report.py プロジェクト: ntouran/armi
    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)
コード例 #5
0
ファイル: test_report.py プロジェクト: crisobg1/Framework
    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()
コード例 #6
0
ファイル: test_report.py プロジェクト: ntouran/armi
    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)
コード例 #7
0
ファイル: test_report.py プロジェクト: mgjarrett/armi
    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)
コード例 #8
0
ファイル: test_report.py プロジェクト: ntouran/armi
    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)
コード例 #9
0
ファイル: case.py プロジェクト: wilcoxjd/armi
    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")
コード例 #10
0
ファイル: test_report.py プロジェクト: mgjarrett/armi
 def test_writeReports(self):
     """Test writing html reports."""
     repInt = reportInterface.ReportInterface(None, None)
     repInt.writeReports()
コード例 #11
0
ファイル: test_report.py プロジェクト: crisobg1/Framework
    def test_writeReports(self):
        """Test writing html reports."""
        from armi.bookkeeping.report import reportInterface

        repInt = reportInterface.ReportInterface(None, None)
        repInt.writeReports()
コード例 #12
0
ファイル: test_report.py プロジェクト: ntouran/armi
 def test_distributableReportInt(self):
     repInt = reportInterface.ReportInterface(None, None)
     self.assertEqual(repInt.distributable(), 4)