From 04a62b60486c52b7f13bf138cc39753a49e1a381 Mon Sep 17 00:00:00 2001 From: appel_c Date: Wed, 3 Sep 2025 15:51:55 +0200 Subject: [PATCH] w --- debye_bec/devices/pilatus/pilatus.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debye_bec/devices/pilatus/pilatus.py b/debye_bec/devices/pilatus/pilatus.py index b4531b9..bb4c188 100644 --- a/debye_bec/devices/pilatus/pilatus.py +++ b/debye_bec/devices/pilatus/pilatus.py @@ -207,7 +207,8 @@ class Pilatus(PSIDeviceBase, ADBase): self.cam.array_callbacks.set(1).wait(5) # Enable array callbacks self.hdf.enable.set(1).wait(5) # Enable HDF5 plugin # Camera settings - self.cam.num_exposures.set(n_images).wait(5) + self.cam.num_exposures.set(1).wait(5) + self.cam.num_images.set(n_images).wait(5) self.cam.acquire_time.set(detector_exp_time).wait(5) self.cam.acquire_period.set(PILATUS_ACQUIRE_TIME).wait(5) # HDF5 settings @@ -237,6 +238,9 @@ 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() status = CompareStatus(self.cam.array_counter, img_counter + 1) self.trigger_shot.put(1)