diff --git a/mlair/run_modules/experiment_setup.py b/mlair/run_modules/experiment_setup.py index 68901d33c88f9f5b94b783d7d286fe1573027516..63be6eb4c6e8b5f8d3149df023e07d23805f077f 100644 --- a/mlair/run_modules/experiment_setup.py +++ b/mlair/run_modules/experiment_setup.py @@ -402,8 +402,10 @@ class ExperimentSetup(RunEnvironment): if len(self.data_store.search_name(k)) == 0: self._set_param(k, v) 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 " - 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", apply: Callable = None) -> Any: