diff --git a/src/ert/run_models/iterated_ensemble_smoother.py b/src/ert/run_models/iterated_ensemble_smoother.py index 2533d536b6c..c1a8a680060 100644 --- a/src/ert/run_models/iterated_ensemble_smoother.py +++ b/src/ert/run_models/iterated_ensemble_smoother.py @@ -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], @@ -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) ) diff --git a/src/ert/run_models/multiple_data_assimilation.py b/src/ert/run_models/multiple_data_assimilation.py index 4f2de8e38c6..098393b9f51 100644 --- a/src/ert/run_models/multiple_data_assimilation.py +++ b/src/ert/run_models/multiple_data_assimilation.py @@ -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"