mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-06 13:30:41 +02:00
removes duplicate code from DataServiceObserver (already in Observer)
This commit is contained in:
parent
8919f6106a
commit
e48a7067ec
@ -32,9 +32,6 @@ class DataServiceObserver(Observer):
|
|||||||
if not self.initialised:
|
if not self.initialised:
|
||||||
return
|
return
|
||||||
|
|
||||||
if full_access_path in self.changing_attributes:
|
|
||||||
self.changing_attributes.remove(full_access_path)
|
|
||||||
|
|
||||||
cached_value_dict = copy(
|
cached_value_dict = copy(
|
||||||
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
|
||||||
@ -73,9 +70,6 @@ class DataServiceObserver(Observer):
|
|||||||
get_object_attr_from_path_list(self.observable, prop.split(".")),
|
get_object_attr_from_path_list(self.observable, prop.split(".")),
|
||||||
)
|
)
|
||||||
|
|
||||||
def on_change_start(self, full_access_path: str) -> None:
|
|
||||||
self.changing_attributes.append(full_access_path)
|
|
||||||
|
|
||||||
def _get_properties_and_their_dependencies(
|
def _get_properties_and_their_dependencies(
|
||||||
self, obj: Observable, prefix: str = ""
|
self, obj: Observable, prefix: str = ""
|
||||||
) -> dict[str, list[str]]:
|
) -> dict[str, list[str]]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user