Skip to content

Commit

Permalink
Replace getKeys with direct fetching of param names
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Nov 27, 2024
1 parent d28ff2f commit 52fda2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ert/config/design_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ def merge_with_existing_parameters(
design_parameter_group = self.parameter_configuration[DESIGN_MATRIX_GROUP]
design_keys = []
if isinstance(design_parameter_group, GenKwConfig):
design_keys = design_parameter_group.getKeyWords()
design_keys = [e.name for e in design_parameter_group.transform_functions]

design_group_added = False
for genkw_group in existing_parameters:
if not isinstance(genkw_group, GenKwConfig):
new_param_config += [genkw_group]
continue
existing_keys = genkw_group.getKeyWords()
existing_keys = [e.name for e in genkw_group.transform_functions]
if set(existing_keys) == set(design_keys):
design_parameter_group.name = genkw_group.name
design_group_added = True
Expand Down

0 comments on commit 52fda2d

Please sign in to comment.