diff --git a/config/config.py b/config/config.py index d6b37a7..871778e 100644 --- a/config/config.py +++ b/config/config.py @@ -141,6 +141,17 @@ class Config: else: raise KeyError(f"Option {option} not found in configuration") + @property + def documentation(self)->bool: + if self._config is None: + raise RuntimeError("Configuration not loaded") + return self._config.documentation + @documentation.setter + def documentation(self, value: bool): + if self._config is None: + raise RuntimeError("Configuration not loaded") + self._config.documentation = value + def to_Omegaconf(self): return omegaconf.OmegaConf.create(self._config)