-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modifed
get_robot_type
to be parameterized on some singleton class …
…types for robot models
- Loading branch information
Showing
9 changed files
with
58 additions
and
33 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
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
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 |
---|---|---|
@@ -1,15 +1,27 @@ | ||
"""Types that are common across protocols.""" | ||
|
||
from typing import TypeVar, Union | ||
from typing import TypeVar, Union, Type | ||
from opentrons.hardware_control.types import OT3Mount | ||
from opentrons.types import Mount | ||
from opentrons.config.types import RobotConfig, OT3Config | ||
|
||
|
||
class OT2RobotType: | ||
pass | ||
|
||
|
||
class FlexRobotType: | ||
pass | ||
|
||
|
||
CalibrationType = TypeVar("CalibrationType") | ||
|
||
MountArgType = TypeVar( | ||
"MountArgType", Mount, Union[OT3Mount, Mount], contravariant=True | ||
) | ||
|
||
ConfigType = TypeVar("ConfigType", RobotConfig, OT3Config) | ||
|
||
ProtocolRobotType = TypeVar( | ||
"ProtocolRobotType", Type[FlexRobotType], Type[OT2RobotType], covariant=True | ||
) |
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
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