mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-05 05:00:40 +02:00
removes filename argument from DataService constructor
This commit is contained in:
parent
2fd4d94dbb
commit
e4796102be
@ -39,8 +39,8 @@ def process_callable_attribute(attr: Any, args: dict[str, Any]) -> Any:
|
||||
|
||||
|
||||
class DataService(rpyc.Service, AbstractDataService):
|
||||
def __init__(self, filename: Optional[str] = None) -> None:
|
||||
self._filename: Optional[str] = filename
|
||||
def __init__(self, **kwargs: Any) -> None:
|
||||
self._filename: Optional[str] = None
|
||||
self._callback_manager: CallbackManager = CallbackManager(self)
|
||||
self._task_manager = TaskManager(self)
|
||||
|
||||
@ -51,6 +51,9 @@ class DataService(rpyc.Service, AbstractDataService):
|
||||
"""Keep track of the root object. This helps to filter the emission of
|
||||
notifications."""
|
||||
|
||||
filename = kwargs.pop("filename", None)
|
||||
if filename is not None:
|
||||
self._filename = filename
|
||||
self._callback_manager.register_callbacks()
|
||||
self.__check_instance_classes()
|
||||
self._initialised = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user