From 7d9f5cff4041d08a0bfb0e79ef5657f06e4c378b Mon Sep 17 00:00:00 2001 From: appel_c Date: Fri, 5 Sep 2025 09:10:13 +0200 Subject: [PATCH] w --- debye_bec/devices/pilatus/pilatus.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debye_bec/devices/pilatus/pilatus.py b/debye_bec/devices/pilatus/pilatus.py index 0442d7d..d1b6296 100644 --- a/debye_bec/devices/pilatus/pilatus.py +++ b/debye_bec/devices/pilatus/pilatus.py @@ -192,14 +192,16 @@ class Pilatus(PSIDeviceBase, ADBase): # Geometry correction for the image data = np.reshape(value, (height, width)) last_image: DevicePreviewMessage = self.preview.get() + if last_image is None: return elif np.array_equal(data, last_image.data): # No update if image is the same, ~2.5ms on 2400x2400 image (6M) - logger.debug( + logger.info( f"Pilatus preview image for {self.name} is the same as last one, not updating." ) return + logger.info(f"Setting data for {self.name}") self.preview.put(data) except Exception: # pylint: disable=broad-except content = traceback.format_exc()