Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pcs/component.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pipeline-component-system"
version = "0.5.0"
version = "0.5.1"
authors = [
{ name="Daniel Cauchi" },
]
Expand Down
Loading