Commit Graph
737 Commits
Author SHA1 Message Date
appel_c 6b22f5bb45 fix(cont-grid): add extra point in lines to include endpoint 2026-07-03 12:34:07 +02:00
11099d226e Feat/slit gui and tomo parameter gui (#241)
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 2s
CI for csaxs_bec / test (push) Successful in 1m33s
---------

Co-authored-by: x12sa <x12sa@psi.ch>
Co-authored-by: menzel <andreas.menzel@psi.ch>
Reviewed-on: #241
2026-07-02 09:02:25 +02:00
x12saandholler 0972f4971b added ROI selector to saved datafile
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 2s
CI for csaxs_bec / test (push) Successful in 1m34s
2026-07-02 08:47:33 +02:00
x12saandholler 453057e185 save roi in pixels with images 2026-07-02 08:47:33 +02:00
x12saandholler cc10cee82b parameter adjustments 2026-07-02 08:47:33 +02:00
x12saandholler 43d18e0ca1 single point acquisition zero z damaged hardware 2026-07-02 08:47:33 +02:00
x12saandholler e13ca157da optics out also in x 2026-07-02 08:47:33 +02:00
64694331e3 Update predict_gap constants to corrected 3-parameter fit
Replace the 4-parameter (quadratic) constants with the 3-parameter
pure-exponential fit from plot_intensity_map.py (operating-locus
calibration, gap-residual RMS ~14 um). c2 was insignificant (0.2 sigma)
and left E_inf degenerate (+/-11 keV).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 08:47:33 +02:00
x12saandholler b16ab20ddf added predict gap to csaxs 2026-07-02 08:47:33 +02:00
wakonig_k d949797eb1 fix: reorder positions in lamni fermat scan test to comply with ascending default
CI for csaxs_bec / test (pull_request) Successful in 1m31s
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 2s
CI for csaxs_bec / test (push) Successful in 1m30s
2026-07-01 19:34:40 +02:00
x12saandholler 82b03274b7 fix docs
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 1s
CI for csaxs_bec / test (push) Successful in 1m38s
2026-07-01 11:49:18 +02:00
wakonig_k 4b05244df2 chore: cleanup unused code
CI for csaxs_bec / test (pull_request) Successful in 1m31s
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 2s
CI for csaxs_bec / test (push) Successful in 1m34s
2026-07-01 11:20:54 +02:00
x12saandwakonig_k 0fd5c26332 saving of images tested
CI for csaxs_bec / test (push) Successful in 1m31s
CI for csaxs_bec / test (pull_request) Successful in 1m31s
2026-07-01 11:19:51 +02:00
x12saandwakonig_k 46a1909296 command history 2026-07-01 11:19:27 +02:00
wakonig_k 9796bcb73f feat(flomni): add functionality to save reference and alignment images as HDF5 files 2026-07-01 11:19:27 +02:00
x12saandholler 7f2c2bedc7 docs(flomni): document tomo_scan_resume, scan queueing, and related tomo_parameters() additions
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 2s
CI for csaxs_bec / test (push) Successful in 1m31s
- Add tomo_scan_resume() as the primary recommended way to continue an
  interrupted scan, in both the user guide and the setup reference
  (manual subtomo_start/start_angle/projection_number kept as fallback)
- Add a new "Queueing multiple scans" section (short walkthrough in the
  user guide, full command reference + status semantics in the setup
  reference, cross-linked via a new anchor)
- Document the live progress report's ETA, automatic gap detection, and
  the total-time-lost-to-gaps summary
- Document the zero_deg_reference_at_each_subtomo tomo_parameters() option
- Fix stale SPEC_ptycho_align.m references -> BEC_ptycho_align.m
2026-06-30 14:31:36 +02:00
x12saandholler b362842e4f feat(flomni): tomo scan queue, crash-safe resume, idle-time-aware ETA, uniform angular step fix
- Tomo scan queue: queue multiple parameter sets and run them sequentially,
  unattended, on the same sample (tomo_queue_add/show/execute/delete/clear);
  resumes a partially-completed job automatically rather than restarting it
- tomo_scan_resume(): resume a crashed/interrupted tomo scan from the exact
  subtomo/angle it stopped at, instead of restarting from the beginning
- Idle-time-aware ETA: detects gaps (crashes, beamline-down pauses) and
  excludes them from the remaining-time estimate; reports total time lost
  to gaps at the end of a scan
- Fixed non-uniform angular spacing in the interlaced 8-sub-tomogram
  tomogram (sub_tomo_scan): phase offsets and per-projection step now
  derive from the same corrected value, independent of requested total
- Fixed corr_pos_y/corr_angle_y/corr_pos_y_2/corr_angle_y_2/
  tomo_alignment_fit being silently wiped on every client restart
  (XrayEyeAlign.__init__); tomo_alignment_fit now also resets at sample
  change, where it was previously missed
- Tracked, stepped fsamy moves (umvr_fsamy_tracked/umv_fsamy_tracked) to
  keep the laser tracker locked during large moves, used in sample
  transfer and manual x-ray-eye alignment jogs
- Added zero_deg_reference_at_each_subtomo for radiation-damage tracking
- tomo_parameters(): fixed several display/rounding inconsistencies and
  added a notification when the requested projection count gets adjusted
2026-06-30 14:31:36 +02:00
x12saandholler 4e472a9a6a fix/get new tomo ID 2026-06-30 14:31:36 +02:00
x12saandholler a684cfda96 feat / added auto vertical centering in first step of alignment. 2026-06-30 14:31:36 +02:00
x12saandholler aef8c80040 tracked fsamy movements 2026-06-30 14:31:36 +02:00
x12saandholler 923415e152 removed a description field 2026-06-30 14:31:36 +02:00
x12saandholler 05ef894e4a fix/slits_show_all working again 2026-06-30 14:31:36 +02:00
x12saandholler 716e2e8e61 feat(xray_eye): add target crosshair, zoom controls, fix ROI styling and zoom-reset bug
- Add show/hide/positionable target crosshair (RPC), separate from bec_widgets' mouse crosshair
- Add zoom in/out/fit buttons; fix manual zoom/pan being wiped on every live-view re-enable
- Add reset_zoom() RPC method, called at start of x_ray_eye_align.py
- Style ROI outline blue/thinner (was near-white via compact_color default)
2026-06-30 14:31:36 +02:00
x12saandholler c4fa9b2eb7 Add scan number display and beamline states diagnostic card
- Append the current BEC scan number to the Projection info-item,
  e.g. "120 / 400 (S06650→S06770)", for direct comparison against
  ptycho reconstruction filenames (which use the same S##### scan
  number convention). Read from
  primary.info[0].active_request_block.scan_number — already
  available on the queue object, no new global var needed.

- Add tomo_start_scan_number to the progress payload, mirroring the
  existing tomo_start_time pattern: a new tomo_progress key to be
  written once by the scan loop when a tomogram begins. Producer side
  (flomni.py) not yet implemented — falls back to showing only the
  current scan number until then.

- New "Beamline states" draggable card (positioned just above
  Contacts): lists every beamline state currently registered with
  BEC, its live status (valid/invalid/warning/unknown), and whether
  the scan interlock is watching it. Cross-references
  bec.builtin_actors.scan_interlock.states_watched/.enabled against
  each state's live status to flag which watched states are
  currently mismatched (i.e. actually contributing to a queue lock),
  vs. states that are invalid but not watched and therefore not
  blocking anything (e.g. a simulated/test shutter).

  This is a display-only diagnostic; the "blocked" experiment_status
  itself is unchanged and still derived from the queue's own locks
  (_read_queue_locks), not from beamline states directly.

- Add fmtScan() JS helper (S##### zero-padded formatting, matching
  the existing ptycho filename convention) and renderBeamlineStates().

- Help panel updated to explain both additions.
2026-06-30 14:31:36 +02:00
x12saandholler 88a320fd59 decrease velocity of fsamy for better tracker following 2026-06-30 14:31:36 +02:00
x12saandholler 00b1996c21 remove z movement in scan as piezo broken
write z propagation to reconstruction file
2026-06-30 14:31:36 +02:00
x12saandholler 59072625b3 added manual shift y in the user query 2026-06-30 14:31:36 +02:00
x12saandholler 6acaadbc24 fix angular start in even subtomos 2026-06-30 14:31:36 +02:00
x12saandholler 3e1d4bc152 fix in documentation 2026-06-30 14:31:36 +02:00
x12saandholler d34b75392f update config 2026-06-30 14:31:36 +02:00
x12saandholler 7e50296c20 added documentation 2026-06-30 14:31:36 +02:00
x12saandholler fa55642f32 increase sleep for camera to settle 2026-06-30 14:31:36 +02:00
x12saandholler 7c5ff011dc fix all optics in condition 2026-06-30 14:31:36 +02:00
appel_candholler 2e87faa64a fix(eiger): activate raise on error again 2026-06-30 14:31:36 +02:00
x12saandholler d61be6ccc2 updated parameters 2026-06-30 14:31:36 +02:00
x12saandholler abe0e0c9a5 switched smaract channels 2026-06-30 14:31:36 +02:00
appel_candholler 29f2c88d31 fix(mcs): fix mcs card monitor thread 2026-06-30 14:31:36 +02:00
x12saandholler 8eea466f69 added user parameters to mirror and xboxsupport for 1/2 reflections 2026-06-30 14:31:36 +02:00
x12saandholler cdc9e2248a added flight tube to eye movement, correct cam rotation and transpose in
xray eye
2026-06-30 14:31:36 +02:00
x12saandholler 4a4bc4abf5 fix(mcs): stop monitor async data event when stop is called. 2026-06-30 14:31:36 +02:00
x12saandholler 032b42e851 fix(eiger): fix eiger integration for 1.5M with proper calibration files on JFJ server 2026-06-30 14:31:36 +02:00
x12saandholler bf3235da0f mono energy directly used in ffzp info 2026-06-30 14:31:36 +02:00
x12saandholler bec81a886e temp fix for galil_show_all not working after config reload 2026-06-30 14:31:36 +02:00
appel_candholler 7937b328f9 fix(bpm-control): fix coupling input arg for BPMControl 2026-06-30 14:31:36 +02:00
appel_candholler b6131b1b36 fix(bpm): fix input device config for bpm.BPM 2026-06-30 14:31:36 +02:00
appel_candholler a03cc97c60 fix(signal_forwarder): fix signal_forwarder signal_ref argument name 2026-06-30 14:31:36 +02:00
x12saandholler 30675f4b70 fix: update ptycho flomni config 2026-06-30 14:31:36 +02:00
x12saandholler 8df72193ad fix: resolve merge conflict 2026-06-30 14:31:36 +02:00
appel_candholler 4e8267155c fix(eiger): temporarily hardcode incident energy for detector 2026-06-30 14:31:36 +02:00
x12saandholler d4eb4e10cb adjust gripper sensor voltage in config 2026-06-30 14:31:36 +02:00