mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-15 16:39:25 +01:00
moving from _full_access_name to callbacks
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from typing import Any
|
||||
|
||||
from pyDataInterface import DataService
|
||||
|
||||
|
||||
def emit(self: Any, parent_path: str, name: str, value: Any) -> None:
|
||||
if isinstance(value, DataService):
|
||||
value = value.serialize()
|
||||
|
||||
print(f"{parent_path}.{name} = {value}")
|
||||
|
||||
|
||||
DataService._emit_notification = emit # type: ignore
|
||||
|
||||
Reference in New Issue
Block a user