Skip to content

Commit

Permalink
Fix rerun button not disabled for ES-MDA
Browse files Browse the repository at this point in the history
This commit fixes the issue where the rerun button was enabled for ES-MDA and ensemble smoother. The issue was due to us setting support_restart before calling the super class's constructor which overwrote it to False.
  • Loading branch information
jonathan-eq committed Jan 21, 2025
1 parent 0b80ac1 commit a22c616
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ert/run_models/iterated_ensemble_smoother.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def __init__(
update_settings: UpdateSettings,
status_queue: SimpleQueue[StatusEvents],
):
self.support_restart = False
self.analysis_config = analysis_config
self.update_settings = update_settings

Expand Down Expand Up @@ -83,6 +82,7 @@ def __init__(
random_seed=random_seed,
minimum_required_realizations=minimum_required_realizations,
)
self.support_restart = False

# Initialize sies_smoother to None
# It is initialized later, but kept track of here
Expand Down
2 changes: 1 addition & 1 deletion src/ert/run_models/multiple_data_assimilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def __init__(
update_settings: UpdateSettings,
status_queue: SimpleQueue[StatusEvents],
):
self.support_restart = False
self._relative_weights = weights
self.weights = self.parse_weights(weights)

Expand Down Expand Up @@ -89,6 +88,7 @@ def __init__(
random_seed=random_seed,
minimum_required_realizations=minimum_required_realizations,
)
self.support_restart = False
self._observations = config.observations
self._parameter_configuration = config.ensemble_config.parameter_configuration
self._response_configuration = config.ensemble_config.response_configuration
Expand Down

0 comments on commit a22c616

Please sign in to comment.