-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(robot-server): deck cal - jog to deck and calibration points (…
…#6389) * refactor(robot-server): deck cal - jog to deck and calibration points closes #6349, closes #6351 * create TypedDicts, update tests * uncomment tavern test, fix lint error
- Loading branch information
1 parent
7fff515
commit f7da768
Showing
4 changed files
with
211 additions
and
12 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
26 changes: 26 additions & 0 deletions
26
robot-server/robot_server/robot/calibration/deck/dev_types.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,26 @@ | ||
from typing import Dict, Union | ||
from typing_extensions import TypedDict, Literal | ||
from opentrons.types import Point | ||
|
||
from .constants import DeckCalibrationState | ||
|
||
SavedPoints = TypedDict( | ||
'SavedPoints', | ||
{ | ||
'1BLC': Point, | ||
'3BRC': Point, | ||
'7TLC': Point, | ||
}, | ||
total=False | ||
) | ||
|
||
ExpectedPoints = TypedDict( | ||
'ExpectedPoints', | ||
{ | ||
'1BLC': Point, | ||
'3BRC': Point, | ||
'7TLC': Point, | ||
}) | ||
|
||
StatePointMap = Dict[ | ||
DeckCalibrationState, Union[Literal['1BLC', '3BRC', '7TLC']]] |
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