This commit is contained in:
2025-09-11 17:11:55 +02:00
parent 623c2ecd78
commit 04c556c4c9
+2 -3
View File
@@ -388,13 +388,12 @@ class Timepix(PSIDeviceBase, TimePixControl):
status_backend = DeviceStatus(self)
# Add callback that starts the acquisition on the detector
status_backend.add_callback(trigger_callback)
# Prepare the backend, attach the status to the state of the backend
status_backend = self.backend.on_trigger(status=status_backend)
# Prepare the camera status that resolves when the camera is finished acquiring
status_camera = TransitionStatus(
self.cam.acquire_busy, [ACQUIRESTATUS.ACQUIRING, ACQUIRESTATUS.DONE]
)
# Prepare the backend, attach the status to the state of the backend
status_backend = self.backend.on_trigger(status=status_backend)
# TODO cleanup and test
def failed_to_start_collect_cb(status: DeviceStatus):