feat(client): set default beamline states for LamNI, OMNY and flOMNI sessions #357

Merged
holler merged 2 commits from feature/set_beamline_states into main 2026-11-17 15:29:15 +01:00
2 Commits
Author SHA1 Message Date
holler 59d62e41cb Merge branch 'main' into feature/set_beamline_states
CI for csaxs_bec / test (push) Successful in 3m54s
CI for csaxs_bec / test (pull_request) Successful in 4m11s
2026-11-17 15:23:33 +01:00
x12saandClaude Opus 5.5 1d34028481 feat(client): set default beamline states for LamNI, OMNY and flOMNI sessions
CI for csaxs_bec / test (push) Successful in 4m17s
CI for csaxs_bec / test (pull_request) Successful in 3m41s
The scan interlock of the tomography scans watches the beamline states.
At client startup of the lamni, omny and flomni sessions the states are
made exactly the defaults (ring current >= 380, idgap <= 8, shutter,
ofb and shutter_es >= 0.5, tolerance 0.1): if they differ, all states
are deleted and the defaults added.

- states are global: if they already match, nothing is touched, so a
  client started during a running scan does not disturb the interlock
- if a device of the defaults is not loaded, the existing states are
  kept
- never raises; problems are printed and logged, startup continues

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M8zoDzRrboFFDabqB9bLNZ
2026-11-10 08:15:46 +01:00