fix(lamni): check filters after leye_out in tomo_alignment_scan
CI for csaxs_bec / test (push) Successful in 3m7s

leye_out() retracts the filters via csaxs.fil_trans(1), so checking
before it warned about filters that were about to be removed anyway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALDnH16dC6iyHjhe5Ey4w9
This commit is contained in:
x12saandClaude Opus 5.5 committed 2026-10-15 14:02:38 +02:00
1 parent 60378cc2c9
commit a30bc8e5c5
1 file changed
+5 -2
@@ -1546,6 +1546,11 @@ class LamNI(
bec = builtins.__dict__.get("bec")
dev = builtins.__dict__.get("dev")
# leye_out() retracts the filters (csaxs.fil_trans(1)), so check only
# afterwards -- checking first warned about filters it was about to
# remove anyway.
self.leye_out()
all_out, offending = filters_out_of_beam(dev)
if not all_out:
warning = f"Not all filters are out of the beam: {', '.join(offending)}."
@@ -1553,8 +1558,6 @@ class LamNI(
print("Aborting alignment scan.")
return
self.leye_out()
self.write_alignment_scan_numbers(bec.queue.next_scan_number)
angles = list(np.linspace(0, 360, num=12, endpoint=False))