w
Some checks failed
CI for csaxs_bec / test (pull_request) Failing after 59s
CI for csaxs_bec / test (push) Failing after 1m5s

This commit is contained in:
2025-12-16 10:56:41 +01:00
parent 3feea8a11e
commit 3b40cc2a71

View File

@@ -207,14 +207,20 @@ class MCSCardCSAXS(PSIDeviceBase, MCSCard):
"""
# NOTE: If for some reason, the card is still acquiring, we need to stop it first
# This should never happen as the card is properly stopped during unstage
# Can only happen if user manually interferes with the IOC through other means
if self.acquiring.get() == ACQUIRING.ACQUIRING:
logger.warning(
f"MCS Card {self.name} was still acquiring on staging. Stopping acquisition."
)
self.stop_all.put(1)
status = CompareStatus(self.acquiring, ACQUIRING.DONE)
status.wait(timeout=10)
# NOTE: Erase all will result in data emission through mca callback subscriptions
# The buffer needs to be cleared as this will otherwise lead to missing
# triggers during the scan.
# triggers during the scan. Again, this should not happen if unstage is properly called.
# But user interference or a restart of the device_server may lead to this situation.
if self.current_channel.get() != 0:
with suppress_mca_callbacks(self):
logger.warning(