Skip to content

Commit

Permalink
Address review oops
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Nov 29, 2024
1 parent 3801742 commit bb33887
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
11 changes: 0 additions & 11 deletions src/ert/run_models/iterated_ensemble_smoother.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,6 @@ def run_experiment(
ensemble=prior,
)

self.set_env_key("_ERT_ITERATION", "0")
self.set_env_key(
"_IS_FINAL_ITERATION",
"False",
)

sample_prior(
prior,
np.where(self.active_realizations)[0],
Expand All @@ -166,11 +160,6 @@ def run_experiment(

self.run_workflows(HookRuntime.PRE_FIRST_UPDATE, self._storage, prior)
for prior_iter in range(self._total_iterations):
self.set_env_key("_ERT_ITERATION", str(prior_iter + 1))
self.set_env_key(
"_IS_FINAL_ITERATION",
"True" if (prior_iter == self._total_iterations - 1) else "False",
)
self.send_event(
RunModelUpdateBeginEvent(iteration=prior_iter, run_id=prior.id)
)
Expand Down
7 changes: 0 additions & 7 deletions src/ert/run_models/multiple_data_assimilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,6 @@ def run_experiment(
f"restart iteration = {prior.iteration + 1}"
)

self.set_env_key("_ERT_ITERATION", str(self.start_iteration))
self.set_env_key(
"_IS_FINAL_ITERATION",
"True"
if (self.start_iteration == self._total_iterations - 1)
else "False",
)
except (KeyError, ValueError) as err:
raise ErtRunError(
f"Prior ensemble with ID: {id} does not exists"
Expand Down

0 comments on commit bb33887

Please sign in to comment.