fix(flomni,omny): expose motor tolerance to scan-server device proxy
CI for csaxs_bec / test (pull_request) Successful in 1m54s
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 2s
CI for csaxs_bec / test (push) Successful in 1m56s

self.dev.fsamroy/.osamroy on the scan server is a generic bec_lib
Positioner proxy rebuilt from serialized device info, not the real
ophyd instance. tolerance was only a plain __init__ attribute, so it
was dropped during serialization and flomni_rotation()/rotation()
crashed with AttributeError: 'Positioner' object has no attribute
'tolerance'. Register tolerance in USER_ACCESS so it serializes and
is reachable via RPC like controller already is.
This commit was merged in pull request #296.
This commit is contained in:
x01dc
2026-08-17 11:31:04 +02:00
parent 4ac20013b8
commit 75cd5d0d00
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ class FuprGalilAxesReferenced(GalilAxesReferenced):
class FuprGalilMotor(Device, PositionerBase):
USER_ACCESS = ["controller"]
USER_ACCESS = ["controller", "tolerance"]
MOTOR_RESOLUTION = 25600
readback = Cpt(FuprGalilReadbackSignal, signal_name="readback", kind="hinted")
user_setpoint = Cpt(FuprGalilSetpointSignal, signal_name="setpoint")
@@ -241,6 +241,7 @@ class OMNYGalilMotor(Device, PositionerBase):
"axis_is_referenced",
"get_motor_temperature",
"folerr_status",
"tolerance",
]
readback = Cpt(OMNYGalilReadbackSignal, signal_name="readback", kind="hinted")
user_setpoint = Cpt(GalilSetpointSignal, signal_name="setpoint")