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() )
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())
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() )
def test_analysis_modules(self): ac = AnalysisConfig() self.assertIsNone( ac.activeModuleName() ) self.assertIsNotNone( ac.getModuleList() )
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)
def test_analysis_modules(self): ac = AnalysisConfig() self.assertIsNone(ac.activeModuleName()) self.assertIsNotNone(ac.getModuleList())
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())