Skip to content

Commit

Permalink
Fix bug where other parameters than GenKw would fail ert
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Jan 12, 2024
1 parent f687bba commit 0f93287
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/ert/storage/local_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,17 @@ def get_gen_data_keyset(self) -> List[str]:
@deprecated("Check the experiment for registered parameters")
def get_gen_kw_keyset(self) -> List[str]:
gen_kw_list = []
for key in self.experiment.parameter_info:
gen_kw_config = self.experiment.parameter_configuration[key]
assert isinstance(gen_kw_config, GenKwConfig)

parameters = [
config
for config in self.experiment.parameter_configuration.values()
if isinstance(config, GenKwConfig)
]
for gen_kw_config in parameters:
for keyword in [e.name for e in gen_kw_config.transfer_functions]:
gen_kw_list.append(f"{key}:{keyword}")
gen_kw_list.append(f"{gen_kw_config.name}:{keyword}")

if gen_kw_config.shouldUseLogScale(keyword):
gen_kw_list.append(f"LOG10_{key}:{keyword}")
gen_kw_list.append(f"LOG10_{gen_kw_config.name}:{keyword}")

return sorted(gen_kw_list, key=lambda k: k.lower())

Expand Down

0 comments on commit 0f93287

Please sign in to comment.