refactor: add set for positioner protocol
This commit is contained in:
parent
b34817acf8
commit
d844168c1f
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user