Skip to content

Commit

Permalink
Use continuous update for target ensemble
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Sep 5, 2024
1 parent 63c6c9a commit f60497e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ert/gui/ertwidgets/models/targetensemblemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(

def setValue(self, value: Optional[str]) -> None:
"""Set a new target ensemble"""
if not value or not value.strip() or value == self.getDefaultValue():
if value == self.getDefaultValue():
self._custom = False
ValueModel.setValue(self, self.getDefaultValue())
else:
Expand Down
1 change: 1 addition & 0 deletions src/ert/gui/simulation/ensemble_smoother_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def __init__(
self._ensemble_format_field = StringBox(
self._ensemble_format_model, # type: ignore
self._ensemble_format_model.getDefaultValue(), # type: ignore
continuous_update=True,
)
self._ensemble_format_field.setValidator(ProperNameFormatArgument())
layout.addRow("Ensemble format:", self._ensemble_format_field)
Expand Down
3 changes: 2 additions & 1 deletion src/ert/gui/simulation/iterated_ensemble_smoother_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def __init__(
)
self._iterated_target_ensemble_format_field = StringBox(
self._iterated_target_ensemble_format_model, # type: ignore
"config/simulation/iterated_target_ensemble_format",
self._iterated_target_ensemble_format_model.getDefaultValue(), # type: ignore
continuous_update=True,
)
self._iterated_target_ensemble_format_field.setValidator(
ProperNameFormatArgument()
Expand Down
1 change: 1 addition & 0 deletions src/ert/gui/simulation/manual_update_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def __init__(
self._ensemble_format_field = StringBox(
self._ensemble_format_model, # type: ignore
self._ensemble_format_model.getDefaultValue(), # type: ignore
continuous_update=True,
)
self._ensemble_format_field.setValidator(ProperNameFormatArgument())
layout.addRow("Ensemble format:", self._ensemble_format_field)
Expand Down
1 change: 1 addition & 0 deletions src/ert/gui/simulation/multiple_data_assimilation_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def __init__(
self._target_ensemble_format_field = StringBox(
self._target_ensemble_format_model, # type: ignore
self._target_ensemble_format_model.getDefaultValue(), # type: ignore
continuous_update=True,
)
self._target_ensemble_format_field.setValidator(ProperNameFormatArgument())
layout.addRow("Target ensemble format:", self._target_ensemble_format_field)
Expand Down

0 comments on commit f60497e

Please sign in to comment.