deprecates update_DataService_attribute function

This commit is contained in:
Mose Müller 2023-11-08 17:05:55 +01:00
parent d0377be455
commit 6c2c5d4ad1

View File

@ -222,6 +222,15 @@ class DataService(rpyc.Service, AbstractDataService):
attr_name: str, attr_name: str,
value: Any, value: Any,
) -> None: ) -> None:
warnings.warn(
"'update_DataService_attribute' is deprecated and will be removed in a "
"future version. "
"Service state management is handled by `pydase.data_service.state_manager`"
"now, instead.",
DeprecationWarning,
stacklevel=2,
)
# If attr_name corresponds to a list entry, extract the attr_name and the index # If attr_name corresponds to a list entry, extract the attr_name and the index
attr_name, index = parse_list_attr_and_index(attr_name) attr_name, index = parse_list_attr_and_index(attr_name)
# Traverse the object according to the path parts # Traverse the object according to the path parts