From 17b2ad32e5ec567bbd985b2d1158ee8d1f69e933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Fri, 20 Dec 2024 14:03:25 +0100 Subject: [PATCH] fix: remove string normalization to fix issues with nested dictionary property changes - Removed normalization logic that replaced double quotes with single quotes for attribute paths. --- src/pydase/data_service/data_service_observer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pydase/data_service/data_service_observer.py b/src/pydase/data_service/data_service_observer.py index 75a78b5..d6c073c 100644 --- a/src/pydase/data_service/data_service_observer.py +++ b/src/pydase/data_service/data_service_observer.py @@ -10,7 +10,6 @@ from pydase.observer_pattern.observer.property_observer import ( ) from pydase.utils.helpers import ( get_object_attr_from_path, - normalize_full_access_path_string, ) from pydase.utils.serialization.serializer import ( SerializationPathError, @@ -102,8 +101,7 @@ class DataServiceObserver(PropertyObserver): ) def _notify_dependent_property_changes(self, changed_attr_path: str) -> None: - normalized_attr_path = normalize_full_access_path_string(changed_attr_path) - changed_props = self.property_deps_dict.get(normalized_attr_path, []) + changed_props = self.property_deps_dict.get(changed_attr_path, []) for prop in changed_props: # only notify about changing attribute if it is not currently being # "changed" e.g. when calling the getter of a property within another