Example #1
0
    def test_keywords_for_monitoring_simulation_runtime(self):
        ac = AnalysisConfig()
        ac.set_min_realisations( 100 )
        self.assertEqual( 100 , ac.getMinRealisations() )
        
        ac.set_max_runtime( 50 )
        self.assertEqual( 50 , ac.get_max_runtime() )

        ac.set_stop_long_running( True )
        self.assertTrue( ac.get_stop_long_running() )
Example #2
0
    def test_keywords_for_monitoring_simulation_runtime(self):
        ac = AnalysisConfig()

        # Unless the MIN_REALIZATIONS is set in config, one is required to have "all" realizations.
        self.assertFalse(ac.haveEnoughRealisations(5, 10))
        self.assertTrue(ac.haveEnoughRealisations(10, 10))

        ac.set_max_runtime(50)
        self.assertEqual(50, ac.get_max_runtime())

        ac.set_stop_long_running(True)
        self.assertTrue(ac.get_stop_long_running())
Example #3
0
    def test_keywords_for_monitoring_simulation_runtime(self):
        ac = AnalysisConfig()

        # Unless the MIN_REALIZATIONS is set in config, one is required to have "all" realizations.
        self.assertFalse(ac.haveEnoughRealisations(5, 10))
        self.assertTrue(ac.haveEnoughRealisations(10, 10))

        ac.set_max_runtime( 50 )
        self.assertEqual( 50 , ac.get_max_runtime() )

        ac.set_stop_long_running( True )
        self.assertTrue( ac.get_stop_long_running() )
Example #4
0
 def test_analysis_modules(self):
     ac = AnalysisConfig()
     self.assertIsNone( ac.activeModuleName() )
     self.assertIsNotNone( ac.getModuleList() )
Example #5
0
 def test_analysis_config_global_std_scaling(self):
     ac = AnalysisConfig()
     self.assertFloatEqual(ac.getGlobalStdScaling(), 1.0)
     ac.setGlobalStdScaling(0.77)
     self.assertFloatEqual(ac.getGlobalStdScaling(), 0.77)
Example #6
0
 def test_analysis_config_global_std_scaling(self):
     ac = AnalysisConfig()
     self.assertFloatEqual(ac.getGlobalStdScaling(), 1.0)
     ac.setGlobalStdScaling(0.77)
     self.assertFloatEqual(ac.getGlobalStdScaling(), 0.77)
Example #7
0
 def test_analysis_modules(self):
     ac = AnalysisConfig()
     self.assertIsNone(ac.activeModuleName())
     self.assertIsNotNone(ac.getModuleList())
Example #8
0
    def test_keywords_for_monitoring_simulation_runtime(self):
        ac = AnalysisConfig()
        ac.set_min_realisations(100)
        self.assertEqual(100, ac.getMinRealisations())

        ac.set_max_runtime(50)
        self.assertEqual(50, ac.get_max_runtime())

        ac.set_stop_long_running(True)
        self.assertTrue(ac.get_stop_long_running())