Skip to content

Commit 7aeb41c

Browse files
committed
Revert "Deprecate DESIGN_KW"
This reverts commit f67ebd5.
1 parent f7d463b commit 7aeb41c

2 files changed

Lines changed: 0 additions & 35 deletions

File tree

src/ert/config/parsing/config_schema_deprecations.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,4 @@
217217
),
218218
check=lambda line: line[0] == "DESIGN2PARAMS",
219219
),
220-
DeprecationInfo(
221-
keyword="FORWARD_MODEL",
222-
message=(
223-
"FORWARD_MODEL DESIGN_KW will be replaced with RUN_TEMPLATE. "
224-
"DESIGN2PARAMS has been replaced by DESIGN_MATRIX, so the "
225-
"parameters are already available for magic string replacement "
226-
"with the RUN_TEMPLATE keyword. Please use this format: "
227-
"'RUN_TEMPLATE my_text_file_template.txt my_text_output_file.txt'"
228-
),
229-
check=lambda line: line[0] == "DESIGN_KW",
230-
),
231220
]

tests/ert/unit_tests/config/parsing/test_config_schema_deprecations.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -228,27 +228,3 @@ def test_that_forward_model_design2params_is_deprecated():
228228
"<designsheet>=TheDesignSheet, <defaultssheet>=TheDefaultsSheet)"
229229
)
230230
ErtConfig.from_file_contents(f"NUM_REALIZATIONS 1\n{config}")
231-
232-
233-
def test_that_forward_model_design_kw_is_deprecated():
234-
# Create a mock DESIGN_KW forward model step, since it is not installed
235-
mock_design_kw_step = ForwardModelStep(
236-
name="DESIGN_KW",
237-
executable="design_kw",
238-
)
239-
240-
with (
241-
patch(
242-
"ert.config.ert_config.installed_forward_model_steps_from_dict",
243-
return_value={"DESIGN_KW": mock_design_kw_step},
244-
),
245-
pytest.warns(
246-
ConfigWarning,
247-
match="FORWARD_MODEL DESIGN_KW will be replaced with RUN_TEMPLATE.",
248-
),
249-
):
250-
config = (
251-
"FORWARD_MODEL DESIGN_KW(<template_file>=template.tmpl, "
252-
"<result_file>=output.txt)"
253-
)
254-
ErtConfig.from_file_contents(f"NUM_REALIZATIONS 1\n{config}")

0 commit comments

Comments
 (0)