fix: only set transmission when it actually differs #218

Merged
leonarski_f merged 1 commits from fix/transmission-set-condition into main 2026-09-10 17:55:51 +02:00
1 Commits
Author SHA1 Message Date
leonarski_fandClaude Opus 5 702eb7d9f9 fix: only set transmission when it actually differs
CI / lint (pull_request) Successful in 37s
CI / test (3.12) (pull_request) Successful in 1m3s
CI / test (3.13) (pull_request) Successful in 1m5s
CI / test (3.14) (pull_request) Successful in 1m4s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m10s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m17s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m21s
CI / test-with-coverage (pull_request) Successful in 1m31s
CI / lint (push) Successful in 32s
Docs build and publish / docker (push) Successful in 14s
CI / coverage-analysis (pull_request) Successful in 4s
CI / test (3.12) (push) Canceled after 45s
CI / test (3.13) (push) Canceled after 41s
CI / test (3.14) (push) Canceled after 40s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 36s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 35s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 31s
CI / test-with-coverage (push) Canceled after 30s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 35s
The guard introduced with the transmission IOC workaround was inverted:
`abs(request - readback) < 0.001` fires only when the beamline is already
at the requested value, so any real transmission change was skipped and
collections ran at whatever transmission happened to be set.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ni1Uhb1WqzpXPwcYsvqnH1
2026-09-10 17:53:01 +02:00