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 authored and berland committed Jan 21, 2025
1 parent bed9a2c commit 36345a6
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 @@ -49,7 +49,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 All @@ -72,6 +71,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 @@ -50,7 +50,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 @@ -80,6 +79,7 @@ def __init__(
random_seed=random_seed,
minimum_required_realizations=minimum_required_realizations,
)
self.support_restart = False

@tracer.start_as_current_span(f"{__name__}.run_experiment")
def run_experiment(
Expand Down

0 comments on commit 36345a6

Please sign in to comment.