Skip to content
Snippets Groups Projects
Commit 29abfc63 authored by leufen1's avatar leufen1
Browse files

issue with old and new parameter naming is solved

parent 68b185a6
No related branches found
No related tags found
7 merge requests!353add developments to release v1.5.0,!352Resolve "release v1.5.0",!351Lukas issue337 bug ci pipeline fails for docs,!350Resolve "upgrade code to TensorFlow V2",!342Include sample-uncertainty to wrf workflow,!337Resolve "Test Set Sample Uncertainty in PostProcessing",!259Draft: Resolve "WRF-Datahandler should inherit from SingleStationDatahandler"
Pipeline #81031 passed
...@@ -402,8 +402,10 @@ class ExperimentSetup(RunEnvironment): ...@@ -402,8 +402,10 @@ class ExperimentSetup(RunEnvironment):
if len(self.data_store.search_name(k)) == 0: if len(self.data_store.search_name(k)) == 0:
self._set_param(k, v) self._set_param(k, v)
else: else:
s = ", ".join([f"{k}({s})={self.data_store.get(k, scope=s)}"
for s in self.data_store.search_name(k)])
raise KeyError(f"Given argument {k} with value {v} cannot be set for this experiment due to a " raise KeyError(f"Given argument {k} with value {v} cannot be set for this experiment due to a "
f"conflict with an existing entry with same naming: {k}={self.data_store.get(k)}") f"conflict with an existing entry with same naming: {s}")
def _set_param(self, param: str, value: Any, default: Any = None, scope: str = "general", def _set_param(self, param: str, value: Any, default: Any = None, scope: str = "general",
apply: Callable = None) -> Any: apply: Callable = None) -> Any:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment