Skip to content

Commit

Permalink
Add deprecation for IES_INVERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Jan 25, 2024
1 parent 0c19fbc commit 65bc3fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ert/config/analysis_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ def __init__(
if var_name in ["INVERSION", "IES_INVERSION"]:
if value in inversion_str_map[module_name]:
value = inversion_str_map[module_name][value]
if var_name == "IES_INVERSION":
ConfigWarning.ert_context_warn(
"IES_INVERSION is deprecated, please use INVERSION instead:\n"
f"ANALYSIS_SET_VAR {module_name} INVERSION {value.upper()}"
)
var_name = "inversion"
key = var_name.lower()
options[module_name][key] = value
Expand Down

0 comments on commit 65bc3fc

Please sign in to comment.