Skip to content

Commit

Permalink
Merge pull request #161 from joakim-hove/ies-gui-bug
Browse files Browse the repository at this point in the history
Add missing argument when constructing ies model instance
  • Loading branch information
joakim-hove authored Oct 17, 2018
2 parents d889661 + c6b610c commit 1764d56
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 )
Expand All @@ -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"]
Expand All @@ -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


Expand Down

0 comments on commit 1764d56

Please sign in to comment.