diff --git a/pcs/component.py b/pcs/component.py index f7fb323..87bc831 100644 --- a/pcs/component.py +++ b/pcs/component.py @@ -1,6 +1,7 @@ from typing import Generic, TypeVar from omegaconf import DictConfig, OmegaConf +from omegaconf.basecontainer import BaseContainer from pcs.init import initialize_object_nones @@ -69,7 +70,10 @@ def __getattr__(self, name): conf: DictConfig = super().__getattribute__("conf") if name in conf.keys(): if name in conf: - return getattr(conf, name) + result = getattr(conf, name) + if isinstance(result, BaseContainer): + result = OmegaConf.to_object(result) + return result return None runtime: T = super().__getattribute__("runtime") if hasattr(runtime, name): diff --git a/pyproject.toml b/pyproject.toml index 253c8b1..baf1e2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pipeline-component-system" -version = "0.5.0" +version = "0.5.1" authors = [ { name="Daniel Cauchi" }, ]