From 2da6379e8eb346d856a68a8e5bc678dfff5b1600 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Thu, 22 Feb 2024 21:40:13 +0100 Subject: [PATCH] docs: added doc strings --- ophyd_devices/utils/bec_utils.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ophyd_devices/utils/bec_utils.py b/ophyd_devices/utils/bec_utils.py index 12d75af..b711328 100644 --- a/ophyd_devices/utils/bec_utils.py +++ b/ophyd_devices/utils/bec_utils.py @@ -247,6 +247,10 @@ class ConfigSignal(Signal): class DeviceClassConnectionError(Device): + """ + Device that always raises a connection error when trying to connect. + It is used to test the wait_for_connection method in the DeviceServer. + """ @property def connected(self): @@ -257,6 +261,11 @@ class DeviceClassConnectionError(Device): class DeviceClassInitError(Device): + """ + Device that always raises an error when trying to construct the object. + It is used to test the error handling in the DeviceServer. + """ + def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) raise RuntimeError("Init error")