This commit is contained in:
2025-09-03 15:53:29 +02:00
parent 04a62b6048
commit 37bd582ba9

View File

@@ -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."