Skip to content

Commit 6054cdc

Browse files
berlandmferrera
authored andcommitted
Remove (almost) non-functional and deprecated RMS env settings
Backwards compatibility probably means that it exists in user configurations, but Ert will not do anything if a RMS forward model is configured with an unused option, like: FORWARD_MODEL RMS(..., <RMS_SOMETHING_UNRECOGNIZED>=FOOBAR) so it should be safe to remove altogether. When present, these two variables yield two warnings emitted pr. realization due to the variables not being defined.
1 parent c1ea34f commit 6054cdc

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/runrms/_forward_model.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,6 @@ def documentation() -> ForwardModelStepDocumentation | None:
6666
)
6767

6868

69-
@plugin(name="runrms") # type: ignore
70-
def forward_model_configuration() -> dict[str, dict[str, str]]:
71-
"""These exist for backward compatibility.
72-
73-
If `RMS_PYTHONPATH` is set to a non-existing path it can fail."""
74-
return {
75-
Rms().name: {
76-
"RMS_PYTHONPATH": "<RMS_PYTHONPATH>",
77-
"RMS_PATH_PREFIX": "<RMS_PATH_PREFIX>",
78-
}
79-
}
80-
81-
8269
@plugin(name="runrms") # type: ignore
8370
def installable_forward_model_steps() -> list[ForwardModelStepPlugin]:
8471
return [Rms]

0 commit comments

Comments
 (0)