mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
changes are only registered if the containing object is not being changed as a whole
This commit is contained in:
parent
5bea0892c7
commit
bd7a46ddc1
@ -23,6 +23,13 @@ class DataServiceObserver(PropertyObserver):
|
|||||||
super().__init__(state_manager.service)
|
super().__init__(state_manager.service)
|
||||||
|
|
||||||
def on_change(self, full_access_path: str, value: Any) -> None:
|
def on_change(self, full_access_path: str, value: Any) -> None:
|
||||||
|
if any(
|
||||||
|
full_access_path.startswith(changing_attribute)
|
||||||
|
and full_access_path != changing_attribute
|
||||||
|
for changing_attribute in self.changing_attributes
|
||||||
|
):
|
||||||
|
return
|
||||||
|
|
||||||
cached_value_dict = deepcopy(
|
cached_value_dict = deepcopy(
|
||||||
self.state_manager._data_service_cache.get_value_dict_from_cache(
|
self.state_manager._data_service_cache.get_value_dict_from_cache(
|
||||||
full_access_path
|
full_access_path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user