CI for csaxs_bec / test (push) Failing after 2m4s
tomo_reconstruct() named the queue file from a fresh next_scan_number but wrote its content from self._current_scan_list, which is only kept in sync by tomo_scan_projection()/tomo_acquire_at_angle(). Calling it directly from the command line -- e.g. after a plain scans.flomni_fermat_scan() -- wrote whatever scan list was left over from an earlier tomo scan, or raised AttributeError if none had run yet this session. Falls back to [next_scan_number - 1] whenever the cached list's last entry doesn't match the scan that actually just completed. Internal callers are unaffected since their cached list always matches at the point they call it. Also notes the identical bug in OMNY.tomo_reconstruct() (a separate, non-shared implementation) as a TODO for a later fix on its own branch. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TUimPoyFQRvxM6R3njvuVj