w
CI for csaxs_bec / test (push) Successful in 1m26s
CI for csaxs_bec / test (pull_request) Successful in 1m29s

This commit is contained in:
2026-01-15 10:03:33 +01:00
parent 5e0d3277d1
commit 49a4700cb0
@@ -406,9 +406,10 @@ class MCSCardCSAXS(PSIDeviceBase, MCSCard):
while not self._scan_done_thread_kill_event.is_set():
while self._start_monitor_async_data_emission.wait():
try:
if self._current_data_index == self.scan_info.msg.num_points:
for callback in self._scan_done_callbacks:
callback(exception=None)
if self.scan_info is not None:
if self._current_data_index == self.scan_info.msg.num_points:
for callback in self._scan_done_callbacks:
callback(exception=None)
time.sleep(0.02) # 20ms delay to avoid busy loop
except Exception as exc: # pylint: disable=broad-except
content = traceback.format_exc()