From 37bd582ba9a68dccf1df83d67cfadcaa073ca3c2 Mon Sep 17 00:00:00 2001 From: appel_c Date: Wed, 3 Sep 2025 15:53:29 +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 bb4c188..79c385b 100644 --- a/debye_bec/devices/pilatus/pilatus.py +++ b/debye_bec/devices/pilatus/pilatus.py @@ -207,15 +207,15 @@ 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(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) + self.cam.num_exposures.put(1) # why + self.cam.num_images.put(n_images) + self.cam.acquire_time.put(detector_exp_time) + self.cam.acquire_period.put(PILATUS_ACQUIRE_TIME) # HDF5 settings logger.debug(f"Setting HDF5 file path to {file_path} and file name to {file_name}") - self.hdf.file_path.set(file_path).wait(5) - self.hdf.file_name.set(file_name).wait(5) - self.hdf.num_capture.set(n_images).wait(5) + self.hdf.file_path.put(file_path) + self.hdf.file_name.put(file_name) + self.hdf.num_capture.put(n_images) self.cam.array_counter.put(0) # Reset array counter logger.warning( f"Finished setting up detector {self.name} after {time.time() - start_time:.2f} seconds."