Skip to content

Commit

Permalink
Disallow same value for DEFAULT_SHEET and DESIGN_SHEET in DESIGN_MATR…
Browse files Browse the repository at this point in the history
…IX config entry
  • Loading branch information
larsevj committed Oct 10, 2024
1 parent 164858a commit 8eec89d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ert/config/design_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ def from_config_list(cls, config_list: List[str]) -> "DesignMatrix":
errors.append(
ErrorInfo("Missing required DEFAULT_SHEET").set_context(config_list)
)
if design_sheet is not None and design_sheet == default_sheet:
errors.append(
ErrorInfo(
"DESIGN_SHEET and DEFAULT_SHEET can not point to the same sheet."
).set_context(config_list)
)
if errors:
raise ConfigValidationError.from_collected(errors)
assert design_sheet is not None
Expand Down

0 comments on commit 8eec89d

Please sign in to comment.