def getAllObservationKeys(ert):
     """
      @type ert: EnKFMain
      @rtype: list of str
     """
     key_manager = KeyManager(ert)
     return key_manager.summaryKeysWithObservations()
 def getAllObservationKeys(ert):
     """
      @type ert: EnKFMain
      @rtype: list of str
     """
     key_manager = KeyManager(ert)
     return key_manager.summaryKeysWithObservations()
示例#3
0
文件: enkf_main.py 项目: bramirex/ert
    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)
示例#4
0
文件: enkf_main.py 项目: kgreg1/ert
    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)
示例#5
0
 def getAllCustomKWKeys(ert):
     """ @rtype: list of str """
     key_manager = KeyManager(ert)
     return key_manager.customKwKeys()
示例#6
0
 def getAllSummaryKeys(ert):
     """ @rtype: list of str """
     key_manager = KeyManager(ert)
     return key_manager.summaryKeys()
示例#7
0
 def getAllGenKwKeys(ert):
     """ @rtype: list of str """
     key_manager = KeyManager(ert)
     return key_manager.genKwKeys()
示例#8
0
 def getAllMisfitKeys(ert, sort_keys=True):
     """ @rtype: list of str """
     key_manager = KeyManager(ert)
     return key_manager.misfitKeys(sort_keys=sort_keys)
示例#9
0
 def getAllMisfitKeys(ert, sort_keys=True):
     """ @rtype: list of str """
     key_manager = KeyManager(ert)
     return key_manager.misfitKeys(sort_keys=sort_keys)
示例#10
0
 def getAllGenKwKeys(ert):
     """ @rtype: list of str """
     key_manager = KeyManager(ert)
     return key_manager.genKwKeys()
示例#11
0
 def getAllSummaryKeys(ert):
     """ @rtype: list of str """
     key_manager = KeyManager(ert)
     return key_manager.summaryKeys()
示例#12
0
 def getAllCustomKWKeys(ert):
     """ @rtype: list of str """
     key_manager = KeyManager(ert)
     return key_manager.customKwKeys()