feat: switch off tell air blower before moving chi away from zero
Docs build and publish / docker (push) Successful in 3s
CI / lint (push) Successful in 59s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 1m4s
CI / test (3.13) (push) Canceled after 1m10s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 1m9s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 1m9s
CI / test (3.14) (push) Canceled after 1m10s
CI / test (3.12) (push) Canceled after 1m10s
CI / test-with-coverage (push) Canceled after 1m14s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 1m15s
Docs build and publish / docker (push) Successful in 3s
CI / lint (push) Successful in 59s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 1m4s
CI / test (3.13) (push) Canceled after 1m10s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 1m9s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 1m9s
CI / test (3.14) (push) Canceled after 1m10s
CI / test (3.12) (push) Canceled after 1m10s
CI / test-with-coverage (push) Canceled after 1m14s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 1m15s
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit was merged in pull request #239.
This commit is contained in:
1 parent
08c15a9eaf
commit
11f22b57cd
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user