Skip to content

Commit 872bc3f

Browse files
committed
Drop DESIGN_MATRIX group prefix in parameters.txt
Output in parameters.txt will drop the group prefix if group is set to DESIGN_MATRIX to make it more compatible with DESIGN2PARAMS behaviour.
1 parent 4d19fa1 commit 872bc3f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/ert/run_models/_create_run_path.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
ParameterConfig,
2020
SurfaceConfig,
2121
)
22+
from ert.config.design_matrix import DESIGN_MATRIX_GROUP
2223
from ert.config.ert_config import create_forward_model_json
2324
from ert.substitutions import Substitutions, substitute_runpath_name
2425
from ert.utils import log_duration
@@ -54,7 +55,12 @@ def _value_export_txt(
5455
for key, param_map in values.items():
5556
for param, value in param_map.items():
5657
if isinstance(value, (int | float)):
57-
print(f"{key}:{param} {value:g}", file=f)
58+
if key == DESIGN_MATRIX_GROUP:
59+
print(f"{param} {value:g}", file=f)
60+
else:
61+
print(f"{key}:{param} {value:g}", file=f)
62+
elif key == DESIGN_MATRIX_GROUP:
63+
print(f"{param} {value}", file=f)
5864
else:
5965
print(f"{key}:{param} {value}", file=f)
6066

0 commit comments

Comments
 (0)