def getAllObservationKeys(ert): """ @type ert: EnKFMain @rtype: list of str """ key_manager = KeyManager(ert) return key_manager.summaryKeysWithObservations()
def __init__(self, model_config, strict=True, verbose=True): c_ptr = EnKFMain.cNamespace().bootstrap(model_config, strict, verbose) super(EnKFMain, self).__init__(c_ptr) # The model_config argument can be None; the only reason to # allow that possibility is to be able to test that the # site-config loads correctly. if model_config is None: self.__simulation_runner = None self.__fs_manager = None else: self.__simulation_runner = EnkfSimulationRunner(self) self.__fs_manager = EnkfFsManager(self) self.__key_manager = KeyManager(self)
def __init__(self, model_config, strict=True, verbose=True): if model_config is not None and not isfile(model_config): raise IOError('No such configuration file "%s".' % model_config) c_ptr = self._alloc(model_config, strict, verbose) if c_ptr: super(EnKFMain, self).__init__(c_ptr) else: raise ValueError( 'Failed to construct EnKFMain instance from config %s.' % model_config) # The model_config argument can be None; the only reason to # allow that possibility is to be able to test that the # site-config loads correctly. if model_config is None: self.__simulation_runner = None self.__fs_manager = None self.__es_update = None else: self.__simulation_runner = EnkfSimulationRunner(self) self.__fs_manager = EnkfFsManager(self) self.__es_update = ESUpdate(self) self.__key_manager = KeyManager(self)
def getAllCustomKWKeys(ert): """ @rtype: list of str """ key_manager = KeyManager(ert) return key_manager.customKwKeys()
def getAllSummaryKeys(ert): """ @rtype: list of str """ key_manager = KeyManager(ert) return key_manager.summaryKeys()
def getAllGenKwKeys(ert): """ @rtype: list of str """ key_manager = KeyManager(ert) return key_manager.genKwKeys()
def getAllMisfitKeys(ert, sort_keys=True): """ @rtype: list of str """ key_manager = KeyManager(ert) return key_manager.misfitKeys(sort_keys=sort_keys)