refactor: add set for positioner protocol

This commit is contained in:
appel_c 2024-03-28 10:29:54 +01:00
parent b34817acf8
commit d844168c1f

View File

@ -354,6 +354,19 @@ class BECPositionerProtocol(Protocol):
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
class BECFlyerProtocol(BECScanProtocol, Protocol):