From 02cf3d51e26f0a5ff2a6404103fac60050c7e166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20Birkeland?= Date: Thu, 11 Jul 2019 10:36:06 +0200 Subject: [PATCH] Expose enkf_main_have_obs in python --- python/res/enkf/enkf_main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/res/enkf/enkf_main.py b/python/res/enkf/enkf_main.py index b050161cbe..225686b66f 100644 --- a/python/res/enkf/enkf_main.py +++ b/python/res/enkf/enkf_main.py @@ -186,6 +186,7 @@ class _RealEnKFMain(BaseCClass): _get_history_length = ResPrototype("int enkf_main_get_history_length(enkf_main)") _get_observations = ResPrototype("void enkf_main_get_observations(enkf_main, char*, int, long*, double*, double*)") _get_observation_count = ResPrototype("int enkf_main_get_observation_count(enkf_main, char*)") + _have_observations = ResPrototype("bool enkf_main_have_obs(enkf_main)") _iget_state = ResPrototype("enkf_state_ref enkf_main_iget_state(enkf_main, int)") _get_workflow_list = ResPrototype("ert_workflow_list_ref enkf_main_get_workflow_list(enkf_main)") _get_hook_manager = ResPrototype("hook_manager_ref enkf_main_get_hook_manager(enkf_main)") @@ -346,6 +347,9 @@ def getObservations(self): """ @rtype: EnkfObs """ return self._get_obs( ).setParent(self) + def have_observations(self): + return self._have_observations() + def loadObservations(self , obs_config_file , clear = True): return self._load_obs(obs_config_file , clear)