mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 00:10:03 +02:00
adds docstring to autostart method
This commit is contained in:
parent
2e31ebb7d9
commit
e422d627af
@ -6,6 +6,12 @@ from pydase.utils.helpers import is_property_attribute
|
|||||||
def autostart_service_tasks(
|
def autostart_service_tasks(
|
||||||
service: pydase.data_service.data_service.DataService,
|
service: pydase.data_service.data_service.DataService,
|
||||||
) -> None:
|
) -> None:
|
||||||
|
"""Starts the service tasks defined with the `autostart` keyword argument.
|
||||||
|
|
||||||
|
This method goes through the attributes of the passed service and its nested
|
||||||
|
`pydase.DataService` instances and calls the start method on autostart-tasks.
|
||||||
|
"""
|
||||||
|
|
||||||
for attr in dir(service):
|
for attr in dir(service):
|
||||||
if not is_property_attribute(service, attr): # prevent eval of property attrs
|
if not is_property_attribute(service, attr): # prevent eval of property attrs
|
||||||
val = getattr(service, attr)
|
val = getattr(service, attr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user