9 Commits
Author SHA1 Message Date
John Henry BealeandClaude Opus 5.5 e05ebeb76b run blocking motor sequences in the worker thread, wait for the backlight
Detector, collimator, post-tube in/out, move home/yag, the backlight button
and the sample exchange/alignment/data collection transitions blocked the
GUI thread for up to ~20s per move.

- MoveWorker (same thread as the collection worker, so sequences and
  collections can not overlap) runs (label, callable) steps with a progress
  dialog; all controls are locked meanwhile (no nudges, zoom stays usable)
- move functions raise MoveError instead of showing dialogs; the GUI shows
  the message when the sequence ends
- abort stops all motors (motor record STOP, backlight) and ends the
  sequence; position checks (assert_tweaker_positions abort=) stop waiting
- safety: backlight moves wait and check the position before the next step
  (post-tube in used to start while the backlight was still moving out)
- tandem nudges stay non blocking in the GUI thread; collimator still moves
  X then Y
- sample alignment: backlight in now also checks the detector is clear of
  the post-tube path (as the backlight button does)

Tested in simulation and at the beamline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 09:20:51 +02:00
zamofing_t 3fc4f50c15 optimize imports and cleanup code 2024-09-25 12:36:48 +02:00
zamofing_t 523a154cd7 major fixes 2023-05-24 17:37:51 +02:00
zamofing_t c1a674c91b add gonio default positions 2023-05-24 11:53:41 +02:00
zamofing_t a186d256d3 various fixes (post_sample_tube, timing etc.) 2022-09-28 14:52:13 +02:00
zamofing_t d8399e901c copy current SwissMX.conf, minor fixes 2022-09-21 16:11:03 +02:00
zamofing_t 1393269ceb add app_utils for motion_assert, contextMenu og GraphItem, further fixes 2022-09-21 11:06:10 +02:00
zamofing_t 1c1e93a4d2 wip 2022-08-22 15:18:06 +02:00
zamofing_t 7445a5aae6 add epics widgets, CustomROI 2022-07-14 17:53:25 +02:00