From c6b610c4559142c9a7d7388a07ab030ab1bef9f3 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Wed, 17 Oct 2018 07:51:46 +0200 Subject: [PATCH] Add missing argument when constructing ies model instance --- .../simulation/models/iterated_ensemble_smoother.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python/python/ert_gui/simulation/models/iterated_ensemble_smoother.py b/python/python/ert_gui/simulation/models/iterated_ensemble_smoother.py index 6e6df0ff4f4..42e953af22a 100644 --- a/python/python/ert_gui/simulation/models/iterated_ensemble_smoother.py +++ b/python/python/ert_gui/simulation/models/iterated_ensemble_smoother.py @@ -36,7 +36,7 @@ def _runAndPostProcess(self, run_context): self.ert().getEnkfSimulationRunner().runWorkflows( HookRuntime.POST_SIMULATION ) self._job_queue = None - + def createTargetCaseFileSystem(self, phase, target_case_format): target_fs = self.ert().getEnkfFsManager().getFileSystem(target_case_format % phase) @@ -87,7 +87,7 @@ def runSimulations(self, arguments): analysis_success = True - + if analysis_success: current_iteration += 1 run_context = self.create_context( arguments, current_iteration, prior_context = run_context ) @@ -110,6 +110,7 @@ def runSimulations(self, arguments): def create_context(self, arguments, itr, prior_context = None, rerun = False): model_config = self.ert().getModelConfig( ) runpath_fmt = model_config.getRunpathFormat( ) + jobname_fmt = model_config.getJobnameFormat( ) subst_list = self.ert().getDataKW( ) fs_manager = self.ert().getEnkfFsManager() target_case_format = arguments["target_case"] @@ -118,14 +119,14 @@ def create_context(self, arguments, itr, prior_context = None, rerun = False): mask = arguments["active_realizations"] else: mask = prior_context.get_mask( ) - + sim_fs = self.createTargetCaseFileSystem(itr, target_case_format) if rerun: target_fs = None else: target_fs = self.createTargetCaseFileSystem(itr + 1 , target_case_format) - run_context = ErtRunContext.ensemble_smoother( sim_fs, target_fs, mask, runpath_fmt, subst_list, itr) + run_context = ErtRunContext.ensemble_smoother( sim_fs, target_fs, mask, runpath_fmt, jobname_fmt, subst_list, itr) return run_context