From d8cf2fb34d15a462f3c583bcf9898dac944b68c8 Mon Sep 17 00:00:00 2001 From: appel_c Date: Fri, 5 Sep 2025 09:16:25 +0200 Subject: [PATCH] w --- debye_bec/devices/pilatus/pilatus.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/debye_bec/devices/pilatus/pilatus.py b/debye_bec/devices/pilatus/pilatus.py index b140f21..ace439a 100644 --- a/debye_bec/devices/pilatus/pilatus.py +++ b/debye_bec/devices/pilatus/pilatus.py @@ -193,13 +193,13 @@ class Pilatus(PSIDeviceBase, ADBase): data = np.reshape(value, (height, width)) last_image: DevicePreviewMessage = self.preview.get() - if last_image is not None: - if np.array_equal(data, last_image.data): - # No update if image is the same, ~2.5ms on 2400x2400 image (6M) - logger.info( - f"Pilatus preview image for {self.name} is the same as last one, not updating." - ) - return + # if last_image is not None: + # if np.array_equal(data, last_image.data): + # # No update if image is the same, ~2.5ms on 2400x2400 image (6M) + # 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)