fix: Improve logs if camera is not connected
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 2s
CI for csaxs_bec / test (pull_request) Successful in 2m22s
CI for csaxs_bec / test (push) Successful in 2m32s

This commit was merged in pull request #195.
This commit is contained in:
2026-04-21 16:11:48 +02:00
parent 5917cc2b1d
commit 2bfef84004
@@ -259,7 +259,7 @@ class Camera:
def get_image_data(self) -> np.ndarray | None:
"""Get the image data from the camera."""
if not self._connected:
self._rate_limited_warning_log("Camera is not connected.")
self._rate_limited_warning_log(f"Camera with id {self.camera_id} is not connected.")
return None
array = self.ueye.get_data(
self.cam.pc_image_mem,