mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-07-09 18:28:03 +02:00
refactor: add set for positioner protocol
This commit is contained in:
@ -354,6 +354,19 @@ class BECPositionerProtocol(Protocol):
|
|||||||
DeviceStatus: DeviceStatus object
|
DeviceStatus: DeviceStatus object
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def set(self, position: float) -> DeviceStatus:
|
||||||
|
"""Set method for positioners.
|
||||||
|
|
||||||
|
In principle, a set command is the same as move. This comes from ophyd upstream.
|
||||||
|
We will have to review whether BEC requires both.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
position: position to move to
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
DeviceStatus: DeviceStatus object
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
@runtime_checkable
|
@runtime_checkable
|
||||||
class BECFlyerProtocol(BECScanProtocol, Protocol):
|
class BECFlyerProtocol(BECScanProtocol, Protocol):
|
||||||
|
Reference in New Issue
Block a user