53e29bece309a8a32d305aa7de548e385f86765c
Before the first auto-center raster, zoom so the loop fills at most 1/3 of the frame, pad loop_face grids, and optionally extend the grid to cover crystals outside the loop. - ml_bounding_box: add build_ml_raster_plan() (single prediction via predict_all_best) returning the grid request + raw loop_all/loop_face boxes + image size. Grid box is loop_face (else loop_all); loop_face is padded by daq.auto_raster.loop_face_padding_fraction (15% default); when daq.auto_raster.include_crystal is set, the grid is unioned with any crystal boxes lying beyond the loop. get_ml_bounding_box (manual button / endpoint) is unchanged. - config: add zoom_for_pixel_to_mm(), the inverse of pixel_to_mm. - raster service execute_auto_center: after the first detection (reused, no re-predict), pick loop_all if detected and not clipped at the frame edge else loop_face, compute the zoom that makes its larger side 1/3 of the frame, clamp to daq.hardware.zoom_min/max, set zoom and re-expose. - x06da.yaml: zoom_min/max + daq.auto_raster block. - tests for box selection, padding, crystal union and the clipped-loop_all rule. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
AareDAQ (v0.3.1)
AareDAQ is the Data Acquisition system for MX beamlines at PSI.
GUI Controls Cheat Sheet
Sample Camera
Left click: move sample to clicked positionShift + Left click: Z-alignment click behaviourCtrl + Left clickon active raster grid: move to clicked position under the gridLeft dragon active raster grid: move active raster gridRight click: open sample camera context menuRight dragon empty area: draw raster gridRight dragon active raster grid: resize raster gridMouse wheel: rotate omega by 90°Shift + Mouse wheel: rotate omega by 10°Ctrl + Mouse wheel: change sample camera exposure by a large stepAlt + Mouse wheel: change sample camera exposure by a small stepShift + Mouse move: inspect/load raster image under cursor
Video Views
Ctrl + Mouse wheel: zoom in/outF: fit to viewR: reset zoom+or=: zoom in-: zoom out
Sample Queue
Delete: remove selected samplesSpace: run / pause queue automation
Workflow Panel
Delete: remove selected queue itemsSpace: pause / resume workflowCtrl + R: refresh workflow queueCtrl + Delete: clear non-running workflow queue items
Global Shortcuts
F1: open mouse / keyboard controls helpCtrl + Q: quit applicationCtrl + Shift + R: restore default view layoutCtrl + 1: switch to Sample camera tabCtrl + 2: switch to Gonio camera tabCtrl + 3: switch to Beamline view tabCtrl + 4: switch to Beamline combined view tabCtrl + L: raise Sample List panelCtrl + J: raise Automation list panelCtrl + M: go to Sample camera tabCtrl + W: toggle Workflow panelCtrl + Shift + T: toggle Target stability panelCtrl + Shift + P: toggle Prediction Metrics panelCtrl + Shift + S: toggle Smargon trace panel