feat: switch off tell air blower before moving chi away from zero
CI / lint (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
CI / lint (pull_request) Successful in 1m7s
CI / test (3.13) (pull_request) Successful in 1m32s
CI / test (3.14) (pull_request) Successful in 1m35s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m38s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m34s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m40s
CI / test-with-coverage (pull_request) Successful in 1m51s
CI / coverage-analysis (pull_request) Failing after 4s
CI / test (3.12) (pull_request) Successful in 1m23s

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-22 09:29:48 +02:00
co-authored by Claude Opus 5
parent 8a24025c27
commit 86a740dbde
+6
View File
@@ -27,6 +27,8 @@ from aare.devices.tell_client import make_tell_client
logger = setup_logger("aareDAQ")
CHI_ZERO_TOLERANCE_DEG = 1e-3
class BeamlineDevices:
def __init__(self, beamline: MXBeamline, dispatch: BeamlineDispatch):
@@ -346,6 +348,10 @@ class BeamlineDevices:
return self._smargon.readback
def set_smargon_pos(self, pos: SmargonCoordinate, /, wait: bool = True):
# TELL air blower must be off before chi leaves zero
if pos.chi_deg is not None and abs(pos.chi_deg) > CHI_ZERO_TOLERANCE_DEG:
logger.info(f"Switching TELL blower off before moving chi to {pos.chi_deg:.3f} deg")
self.tell.blower_off()
self._smargon.target = pos
@smargon_pos.setter