fix(LamNI): unambiguous confirmation wording, freeze frame before click
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 1s
CI for csaxs_bec / test (push) Successful in 1m40s

- Reword the extended-loop accept/iterate prompt: the old either/or
  phrasing made a "yes" answer ambiguous about which half it affirmed.
- Freeze a single frame (and close the shutter/live-view per
  keep_shutter_open) before requesting the rotation-centre click, same
  as every other click site in this file -- previously the shutter and
  5 Hz live view stayed on for the whole time the operator was
  deciding where to click, exposing the sample for no benefit.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit was merged in pull request #270.
This commit is contained in:
x01dc
2026-07-24 13:02:01 +02:00
committed by holler
co-authored by Claude Sonnet 5
parent b7b5b9282a
commit f49605317b
@@ -848,6 +848,7 @@ class XrayEyeAlign:
"Watch the sample rotate and locate the stationary rotation centre..."
)
self._live_sweep([180, 0])
self.update_frame(keep_shutter_open)
self.movement_buttons_enabled(True, True)
center_x, center_y = self._collect_click(
1,
@@ -868,8 +869,7 @@ class XrayEyeAlign:
self.update_frame(keep_shutter_open)
answer = (
input(
"Are you happy with this alignment, or shall we do another iteration? "
"[Y/n]: "
"Alignment acceptable -- stop here? [Y/n] (n = run another iteration): "
)
.strip()
.lower()