-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a
FlexInstrumentConfigurer
for flex-specific configuration ex…
…tensions
- Loading branch information
Showing
5 changed files
with
47 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
api/src/opentrons/hardware_control/protocols/flex_instrument_configurer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Flex-specific extensions to instrument configuration.""" | ||
from typing import Union | ||
from typing_extensions import Protocol | ||
|
||
from .types import MountArgType | ||
|
||
from opentrons.hardware_control.dev_types import ( | ||
PipetteStateDict, | ||
) | ||
from opentrons.hardware_control.instruments.ot3.instrument_calibration import ( | ||
PipetteOffsetSummary, | ||
GripperCalibrationOffset, | ||
) | ||
|
||
|
||
class FlexInstrumentConfigurer(Protocol[MountArgType]): | ||
"""A protocol specifying Flex-specific extensions to instrument configuration.""" | ||
|
||
async def get_instrument_state( | ||
self, | ||
mount: MountArgType, | ||
) -> PipetteStateDict: | ||
... | ||
|
||
def get_instrument_offset( | ||
self, mount: MountArgType | ||
) -> Union[GripperCalibrationOffset, PipetteOffsetSummary, None]: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters