w
All checks were successful
CI for csaxs_bec / test (pull_request) Successful in 1m26s
CI for csaxs_bec / test (push) Successful in 1m29s

This commit is contained in:
2026-01-15 10:12:55 +01:00
parent 49a4700cb0
commit 01e7fc03ef

View File

@@ -264,6 +264,7 @@ class DDG1(PSIDeviceBase, DelayGeneratorCSAXS):
# This value has been choosen empirically after testing with the HW. It's
# also just called once per scan and has been found to improve stability of the HW.
time.sleep(0.2)
logger.info("DDG1 configured for upcoming scan.")
def _prepare_mcs_on_trigger(self, mcs: MCSCardCSAXS) -> None:
"""
@@ -354,6 +355,7 @@ class DDG1(PSIDeviceBase, DelayGeneratorCSAXS):
"""
logger.info("Polling DDG1 event status register...")
self.state.proc_status.put(1, use_complete=True)
# NOTE: Important sleep that has been empirically determined after testing for a long time
@@ -415,6 +417,7 @@ class DDG1(PSIDeviceBase, DelayGeneratorCSAXS):
# Callback to cancel the status if the device is stopped
def cancel_cb(status: CompareStatus) -> None:
"""Callback to cancel the status if the device is stopped."""
logger.info("DDG1 end of burst detected, stopping polling loop.")
if status.done:
self._stop_polling()