Merge branch 'master' of gitlab.psi.ch:/bec/ophyd_devices

This commit is contained in:
2022-08-02 11:35:48 +02:00
4 changed files with 52 additions and 25 deletions

View File

@@ -272,6 +272,7 @@ class GalilSetpointSignal(GalilSignalBase):
return self.setpoint
@retry_once
@threadlocked
def _socket_set(self, val: float) -> None:
"""Set a new target value / setpoint value. Before submission, the target value is adjusted for the axis' sign.
Furthermore, it is ensured that all axes are referenced before a new setpoint is submitted.
@@ -488,6 +489,8 @@ class GalilMotor(Device, PositionerBase):
atol=self.tolerance,
)
self._done_moving(success=success)
if not success:
print(" stop")
logger.info("Move finished")
threading.Thread(target=move_and_finish, daemon=True).start()