fix move command again
CI for csaxs_bec / test (push) Successful in 1m30s

This commit is contained in:
2026-07-01 15:14:26 +02:00
parent 3948a8cbb2
commit 3a0eda4fc2
@@ -53,8 +53,8 @@ class SlitControlWidget(BECWidget, QWidget):
updated live via Redis subscription
Movement reads the current position via ``device.read()`` then dispatches
Movement calls ``device.set(target)`` on the device proxy, which routes
through to the device server — the same pattern used by XRayEye2DControl.
Movement calls ``device.move(target)`` the documented BECWidget API for
moving a positioner (``self.dev['motor'].move(position)``).
"""
PLUGIN = True
@@ -342,7 +342,7 @@ class SlitControlWidget(BECWidget, QWidget):
reading = device.read()
current = float(reading[dev_name]["value"])
target = current + delta
device.set(target)
device.move(target)
except Exception as exc:
logger.warning(f"SlitControlWidget: failed to move {dev_name}: {exc}")