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
Member

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

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>
holler added 1 commit 2026-07-27 12:22:03 +02:00
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
1af89d1dd4
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>
holler merged commit b7154e665e into main 2026-07-27 12:35:42 +02:00
holler deleted branch lamni_skip_redundant_tomo_rotate_after_loptics_out 2026-07-27 12:35:43 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bec/csaxs_bec#275