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()
        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 #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_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())