Ejemplo n.º 1
0
 def test_instantiation(self):
     config_file = self.createTestPath('local/simple_config/minimum_config')
     with ErtTestContext('kjell', config_file) as work_area:
         ert = work_area.getErt()
         configureErtNotifier(ert, config_file)
         brm = BaseRunModel('kjell', ert.get_queue_config())
         self.assertFalse(brm.isQueueRunning())
         self.assertTrue(brm.getProgress() >= 0)
Ejemplo n.º 2
0
 def do_load_config(self, config_file):
     if os.path.exists(config_file) and os.path.isfile(config_file):
         self.shellContext().setErt(EnKFMain(config_file))
         ert_gui.configureErtNotifier(self.shellContext().ert(),
                                      config_file)
     else:
         self.lastCommandFailed("Config file '%s' not found!\n" %
                                config_file)
Ejemplo n.º 3
0
 def test_instantiation(self):
     config_file = self.createTestPath('local/simple_config/minimum_config')
     with ErtTestContext('kjell', config_file) as work_area:
         ert = work_area.getErt()
         configureErtNotifier(ert, config_file)
         brm = BaseRunModel('kjell' ,ert.get_queue_config( ))
         self.assertFalse(brm.isQueueRunning())
         self.assertTrue(brm.getProgress() >= 0)
Ejemplo n.º 4
0
 def do_load_config(self, config_file):
     if os.path.exists(config_file) and os.path.isfile(config_file):
         res_config = ResConfig(config_file)
         self.shellContext().res_config = res_config
         os.chdir( res_config.config_path )
         self.shellContext().setErt(EnKFMain(res_config))
         ert_gui.configureErtNotifier(self.shellContext().ert(), config_file)
     else:
         self.lastCommandFailed("Config file '%s' not found!\n" % config_file)