w
Some checks failed
CI for csaxs_bec / test (push) Failing after 1m28s
CI for csaxs_bec / test (pull_request) Failing after 1m28s

This commit is contained in:
2026-01-27 10:03:46 +01:00
parent c9957c2b2b
commit 2190a6627d

View File

@@ -114,9 +114,12 @@ class JungfrauJochClient:
raise TimeoutError(f"Timeout while setting detector settings for {self._parent_name}")
except Exception:
content = traceback.format_exc()
raise JungfrauJochClientError(
logger.error(
f"Error while setting detector settings for {self._parent_name}: {content}"
)
raise JungfrauJochClientError(
f"Error while setting detector settings for parent device {self._parent_name}."
)
def start(self, settings: dict | DatasetSettings, request_timeout: float = 10) -> None:
"""Start the mesaurement. DatasetSettings must be provided, and JungfrauJoch must be in IDLE state.
@@ -147,9 +150,12 @@ class JungfrauJochClient:
)
except Exception:
content = traceback.format_exc()
raise JungfrauJochClientError(
logger.error(
f"Error in JungfrauJochClient for parent device {self._parent_name} during 'start' call: {content}"
)
raise JungfrauJochClientError(
f"Error in JungfrauJochClient for parent device {self._parent_name} during 'start' post."
)
def stop(self, request_timeout: float = 0.5) -> None:
"""Stop the acquisition, this only logs errors and is not raising."""