From e15e5404d41d82382d953bc6f24d59d91aa1a7e1 Mon Sep 17 00:00:00 2001 From: appel_c Date: Wed, 3 Sep 2025 16:13:38 +0200 Subject: [PATCH] w --- debye_bec/devices/pilatus/pilatus.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debye_bec/devices/pilatus/pilatus.py b/debye_bec/devices/pilatus/pilatus.py index b14528f..900e376 100644 --- a/debye_bec/devices/pilatus/pilatus.py +++ b/debye_bec/devices/pilatus/pilatus.py @@ -243,11 +243,11 @@ class Pilatus(PSIDeviceBase, ADBase): # TODO should we fetch the image counter value, or rather use our own count # TODO check logic for xas scans! if self.scan_info.msg.scan_type == "step": - logger.warning( - f"Triggering image {self.cam.array_counter.get()} and num_ images {self.cam.num_images_counter.get()}" - ) - img_counter = self.cam.array_counter.get() + start_time = time.time() + logger.warning(f"Triggering image with num_captured {self.hdf.num_captured.get()}") + img_counter = self.hdf.num_captured.get() status = CompareStatus(self.cam.array_counter, img_counter + 1) + logger.warning(f"Triggering took image {time.time() - start_time:.3f} seconds") self.trigger_shot.put(1) return status