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