mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-22 17:10:02 +02:00
fix: fixing method serialization
This commit is contained in:
parent
08a01c1bfe
commit
18c71dd7f6
@ -12,9 +12,7 @@ class DataServiceSerializer:
|
|||||||
def __init__(self, filename: str) -> None:
|
def __init__(self, filename: str) -> None:
|
||||||
self._tasks: dict[str, TaskDict]
|
self._tasks: dict[str, TaskDict]
|
||||||
|
|
||||||
def serialize( # noqa
|
def serialize(self) -> dict[str, dict[str, Any]]: # noqa
|
||||||
self, tasks: dict[str, Any] = {}
|
|
||||||
) -> dict[str, dict[str, Any]]:
|
|
||||||
"""
|
"""
|
||||||
Serializes the instance into a dictionary, preserving the structure of the
|
Serializes the instance into a dictionary, preserving the structure of the
|
||||||
instance.
|
instance.
|
||||||
@ -112,8 +110,8 @@ class DataServiceSerializer:
|
|||||||
for k, v in sig.parameters.items()
|
for k, v in sig.parameters.items()
|
||||||
}
|
}
|
||||||
running_task_info = None
|
running_task_info = None
|
||||||
if key in tasks: # If there's a running task for this method
|
if key in self._tasks: # If there's a running task for this method
|
||||||
task_info = tasks[key]
|
task_info = self._tasks[key]
|
||||||
running_task_info = task_info["kwargs"]
|
running_task_info = task_info["kwargs"]
|
||||||
|
|
||||||
result[key] = {
|
result[key] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user