mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-05-05 23:10:08 +02:00
14 lines
311 B
Python
14 lines
311 B
Python
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
|