perf(LamNI): skip redundant lsamrot rotate-to-0 right after loptics_out() #275

Merged
holler merged 1 commits from lamni_skip_redundant_tomo_rotate_after_loptics_out into main 2026-07-27 12:35:42 +02:00
1 Commits
Author SHA1 Message Date
x01dcandClaude Sonnet 5 1af89d1dd4 perf(LamNI): skip redundant lsamrot rotate-to-0 right after loptics_out()
CI for csaxs_bec / test (push) Successful in 1m55s
CI for csaxs_bec / test (pull_request) Successful in 2m40s
loptics_out() already drives lsamrot to 0 via
RtLamniController.feedback_enable_with_reset() when rtx is enabled, so the
explicit tomo_rotate(0) that followed in find_rotation_center() and
find_rotation_center_smear_experimental() was reissuing a move that had
mostly already happened -- align() already skips this same step (see its
commented-out disable/rotate/re-enable at the equivalent spot).

_tomo_rotate_if_needed() keeps the still-needed pieces: it still corrects
small residual drift from feedback briefly running before
_disable_rt_feedback(), and still performs the move when rtx is disabled
(loptics_out() then never touches lsamrot at all).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-27 10:19:21 +02:00