mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
updating property dependencies in PropertyObserver
As Task objects have to be class attributes, I have to loop through class attributes, as well when calculating nested observables properties.
This commit is contained in:
parent
ed7f3d8509
commit
c00cf9a6ff
@ -60,7 +60,7 @@ class PropertyObserver(Observer):
|
|||||||
def _process_nested_observables_properties(
|
def _process_nested_observables_properties(
|
||||||
self, obj: Observable, deps: dict[str, Any], prefix: str
|
self, obj: Observable, deps: dict[str, Any], prefix: str
|
||||||
) -> None:
|
) -> None:
|
||||||
for k, value in vars(obj).items():
|
for k, value in {**vars(type(obj)), **vars(obj)}.items():
|
||||||
prefix = (
|
prefix = (
|
||||||
f"{prefix}." if prefix != "" and not prefix.endswith(".") else prefix
|
f"{prefix}." if prefix != "" and not prefix.endswith(".") else prefix
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user