@opentrons/shared-data 0.0.1-alpha.20 → 0.0.1-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/package.json +1 -1
  2. package/js/__tests__/__snapshots__/pipettes.test.ts.snap +0 -5969
  3. package/js/__tests__/deckSchemas.test.ts +0 -87
  4. package/js/__tests__/errors.test.js +0 -21
  5. package/js/__tests__/getAreSlotsAdjacent.test.ts +0 -128
  6. package/js/__tests__/getWellNamePerMultiTip.test.ts +0 -162
  7. package/js/__tests__/labwareDefQuirks.test.ts +0 -37
  8. package/js/__tests__/labwareDefSchemaV1.test.ts +0 -82
  9. package/js/__tests__/labwareDefSchemaV2.test.ts +0 -298
  10. package/js/__tests__/moduleAccessors.test.ts +0 -50
  11. package/js/__tests__/moduleSpecsSchema.test.ts +0 -77
  12. package/js/__tests__/pipetteSchemaV2.test.ts +0 -107
  13. package/js/__tests__/pipetteSpecSchemas.test.ts +0 -48
  14. package/js/__tests__/pipettes.test.ts +0 -58
  15. package/js/__tests__/protocolSchemaV4.test.ts +0 -137
  16. package/js/__tests__/protocolSchemaV5.test.ts +0 -137
  17. package/js/__tests__/protocolSchemaV6.test.ts +0 -132
  18. package/js/__tests__/protocolSchemaV7.test.ts +0 -64
  19. package/js/__tests__/protocolValidation.test.ts +0 -83
  20. package/js/__tests__/sortWells.test.ts +0 -40
  21. package/js/__tests__/splitWellsOnColumn.test.ts +0 -21
  22. package/js/__tests__/validateErrors.test.js +0 -34
  23. package/js/constants.ts +0 -338
  24. package/js/cypressUtils.ts +0 -35
  25. package/js/errors.ts +0 -33
  26. package/js/fixtures.ts +0 -161
  27. package/js/getLabware.ts +0 -154
  28. package/js/gripper.ts +0 -29
  29. package/js/helpers/__tests__/getAdapterName.test.ts +0 -31
  30. package/js/helpers/__tests__/getDeckDefFromLoadedLabware.test.ts +0 -12
  31. package/js/helpers/__tests__/getVectorDifference.test.ts +0 -25
  32. package/js/helpers/__tests__/getVectorSum.test.ts +0 -21
  33. package/js/helpers/__tests__/labwareInference.test.ts +0 -84
  34. package/js/helpers/__tests__/orderWells.test.ts +0 -87
  35. package/js/helpers/__tests__/parseProtocolData.test.ts +0 -165
  36. package/js/helpers/__tests__/volume.test.ts +0 -108
  37. package/js/helpers/__tests__/wellSets.test.ts +0 -352
  38. package/js/helpers/get96Channel384WellPlateWells.ts +0 -44
  39. package/js/helpers/getAddressableAreasInProtocol.ts +0 -59
  40. package/js/helpers/getLoadedLabwareDefinitionsByUri.ts +0 -30
  41. package/js/helpers/getModuleVizDims.ts +0 -118
  42. package/js/helpers/getOccludedSlotCountForModule.ts +0 -13
  43. package/js/helpers/getVectorDifference.ts +0 -12
  44. package/js/helpers/getVectorSum.ts +0 -12
  45. package/js/helpers/getWellNamePerMultiTip.ts +0 -86
  46. package/js/helpers/getWellTotalVolume.ts +0 -16
  47. package/js/helpers/index.ts +0 -347
  48. package/js/helpers/labwareInference.ts +0 -92
  49. package/js/helpers/orderWells.ts +0 -69
  50. package/js/helpers/parseProtocolData.ts +0 -141
  51. package/js/helpers/volume.ts +0 -35
  52. package/js/helpers/wellIsRect.ts +0 -6
  53. package/js/helpers/wellSets.ts +0 -155
  54. package/js/index.ts +0 -14
  55. package/js/labwareTools/__tests__/__snapshots__/createIrregularLabware.test.ts.snap +0 -3
  56. package/js/labwareTools/__tests__/__snapshots__/createLabware.test.ts.snap +0 -3
  57. package/js/labwareTools/__tests__/createDefaultDisplayName.test.ts +0 -111
  58. package/js/labwareTools/__tests__/createIrregularLabware.test.ts +0 -226
  59. package/js/labwareTools/__tests__/createLabware.test.ts +0 -147
  60. package/js/labwareTools/index.ts +0 -452
  61. package/js/modules.ts +0 -97
  62. package/js/pipettes.ts +0 -89
  63. package/js/protocols.ts +0 -290
  64. package/js/schema.ts +0 -80
  65. package/js/scripts/generateDeckLayersFromSVG.js +0 -46
  66. package/js/titleCase.ts +0 -30
  67. package/js/types.ts +0 -600
  68. package/python/.coveragerc +0 -4
  69. package/python/.flake8 +0 -32
  70. package/python/Config.in +0 -10
  71. package/python/Makefile +0 -134
  72. package/python/Pipfile +0 -28
  73. package/python/Pipfile.lock +0 -645
  74. package/python/buildroot.mk +0 -30
  75. package/python/mypy.ini +0 -41
  76. package/python/opentrons_shared_data/__init__.py +0 -17
  77. package/python/opentrons_shared_data/_version.py +0 -20
  78. package/python/opentrons_shared_data/command/__init__.py +0 -52
  79. package/python/opentrons_shared_data/deck/__init__.py +0 -96
  80. package/python/opentrons_shared_data/deck/dev_types.py +0 -180
  81. package/python/opentrons_shared_data/errors/__init__.py +0 -30
  82. package/python/opentrons_shared_data/errors/categories.py +0 -60
  83. package/python/opentrons_shared_data/errors/codes.py +0 -108
  84. package/python/opentrons_shared_data/errors/exceptions.py +0 -915
  85. package/python/opentrons_shared_data/gripper/__init__.py +0 -63
  86. package/python/opentrons_shared_data/gripper/constants.py +0 -6
  87. package/python/opentrons_shared_data/gripper/gripper_definition.py +0 -101
  88. package/python/opentrons_shared_data/labware/__init__.py +0 -22
  89. package/python/opentrons_shared_data/labware/constants.py +0 -7
  90. package/python/opentrons_shared_data/labware/dev_types.py +0 -140
  91. package/python/opentrons_shared_data/labware/labware_definition.py +0 -328
  92. package/python/opentrons_shared_data/load.py +0 -57
  93. package/python/opentrons_shared_data/module/__init__.py +0 -74
  94. package/python/opentrons_shared_data/module/dev_types.py +0 -141
  95. package/python/opentrons_shared_data/pipette/__init__.py +0 -107
  96. package/python/opentrons_shared_data/pipette/dev_types.py +0 -177
  97. package/python/opentrons_shared_data/pipette/file_operation_helpers.py +0 -37
  98. package/python/opentrons_shared_data/pipette/load_data.py +0 -261
  99. package/python/opentrons_shared_data/pipette/model_constants.py +0 -123
  100. package/python/opentrons_shared_data/pipette/mutable_configurations.py +0 -431
  101. package/python/opentrons_shared_data/pipette/pipette_definition.py +0 -503
  102. package/python/opentrons_shared_data/pipette/pipette_load_name_conversions.py +0 -240
  103. package/python/opentrons_shared_data/pipette/scripts/__init__.py +0 -0
  104. package/python/opentrons_shared_data/pipette/scripts/build_json_script.py +0 -469
  105. package/python/opentrons_shared_data/pipette/scripts/update_configuration_files.py +0 -450
  106. package/python/opentrons_shared_data/pipette/types.py +0 -193
  107. package/python/opentrons_shared_data/protocol/__init__.py +0 -13
  108. package/python/opentrons_shared_data/protocol/constants.py +0 -98
  109. package/python/opentrons_shared_data/protocol/dev_types.py +0 -436
  110. package/python/opentrons_shared_data/protocol/models/__init__.py +0 -48
  111. package/python/opentrons_shared_data/protocol/models/protocol_schema_v6.py +0 -145
  112. package/python/opentrons_shared_data/protocol/models/protocol_schema_v7.py +0 -95
  113. package/python/opentrons_shared_data/protocol/models/protocol_schema_v8.py +0 -110
  114. package/python/opentrons_shared_data/protocol/models/shared_models.py +0 -111
  115. package/python/opentrons_shared_data/py.typed +0 -0
  116. package/python/opentrons_shared_data/robot/__init__.py +0 -33
  117. package/python/opentrons_shared_data/robot/dev_types.py +0 -37
  118. package/python/pytest.ini +0 -2
  119. package/python/setup.cfg +0 -5
  120. package/python/setup.py +0 -179
  121. package/python/tests/__init__.py +0 -1
  122. package/python/tests/conftest.py +0 -0
  123. package/python/tests/deck/__init__.py +0 -0
  124. package/python/tests/deck/test_list_names.py +0 -12
  125. package/python/tests/deck/test_position.py +0 -113
  126. package/python/tests/deck/test_typechecks.py +0 -28
  127. package/python/tests/errors/__init__.py +0 -1
  128. package/python/tests/errors/test_error_completeness.py +0 -19
  129. package/python/tests/errors/test_exceptions.py +0 -74
  130. package/python/tests/gripper/__init__.py +0 -0
  131. package/python/tests/gripper/test_definition.py +0 -30
  132. package/python/tests/gripper/test_load.py +0 -16
  133. package/python/tests/labware/__init__.py +0 -13
  134. package/python/tests/labware/test_typechecks.py +0 -21
  135. package/python/tests/module/__init__.py +0 -20
  136. package/python/tests/module/test_load.py +0 -49
  137. package/python/tests/module/test_typechecks.py +0 -34
  138. package/python/tests/pipette/__init__.py +0 -0
  139. package/python/tests/pipette/test_load_data.py +0 -103
  140. package/python/tests/pipette/test_mutable_configurations.py +0 -266
  141. package/python/tests/pipette/test_pipette_definition.py +0 -183
  142. package/python/tests/pipette/test_pipette_load_name_conversions.py +0 -222
  143. package/python/tests/pipette/test_typechecks.py +0 -50
  144. package/python/tests/pipette/test_validate_schema.py +0 -37
  145. package/python/tests/protocol/__init__.py +0 -15
  146. package/python/tests/protocol/test_protocol_schema_v6.py +0 -107
  147. package/python/tests/protocol/test_protocol_schema_v7.py +0 -34
  148. package/python/tests/protocol/test_protocol_schema_v8.py +0 -20
  149. package/python/tests/protocol/test_typechecks.py +0 -36
  150. package/python/tests/robot/__init__.py +0 -0
  151. package/python/tests/robot/test_typechecks.py +0 -20
@@ -1,98 +0,0 @@
1
- from typing import TYPE_CHECKING
2
- from enum import Enum
3
-
4
-
5
- if TYPE_CHECKING:
6
- from .dev_types import (
7
- DelayCommandId,
8
- BlowoutCommandId,
9
- PickUpTipCommandId,
10
- DropTipCommandId,
11
- AspirateCommandId,
12
- DispenseCommandId,
13
- TouchTipCommandId,
14
- MoveToSlotCommandId,
15
- AirGapCommandId,
16
- MagneticModuleEngageCommandId,
17
- MagneticModuleDisengageCommandId,
18
- TemperatureModuleSetTargetCommandId,
19
- TemperatureModuleAwaitCommandId,
20
- TemperatureModuleDeactivateCommandId,
21
- ThermocyclerSetTargetBlockCommandId,
22
- ThermocyclerSetTargetLidCommandId,
23
- ThermocyclerAwaitBlockTemperatureCommandId,
24
- ThermocyclerAwaitLidTemperatureCommandId,
25
- ThermocyclerOpenLidCommandId,
26
- ThermocyclerCloseLidCommandId,
27
- ThermocyclerDeactivateLidCommandId,
28
- ThermocyclerDeactivateBlockCommandId,
29
- ThermocyclerRunProfileCommandId,
30
- ThermocyclerAwaitProfileCommandId,
31
- MoveToWellCommandId,
32
- )
33
-
34
-
35
- class JsonPipetteCommand(Enum):
36
- airGap: "AirGapCommandId" = "airGap"
37
- blowout: "BlowoutCommandId" = "blowout"
38
- pickUpTip: "PickUpTipCommandId" = "pickUpTip"
39
- dropTip: "DropTipCommandId" = "dropTip"
40
- aspirate: "AspirateCommandId" = "aspirate"
41
- dispense: "DispenseCommandId" = "dispense"
42
- touchTip: "TouchTipCommandId" = "touchTip"
43
- moveToSlot: "MoveToSlotCommandId" = "moveToSlot"
44
- moveToWell: "MoveToWellCommandId" = "moveToWell"
45
-
46
-
47
- class JsonRobotCommand(Enum):
48
- delay: "DelayCommandId" = "delay"
49
-
50
-
51
- class JsonMagneticModuleCommand(Enum):
52
- magneticModuleEngageMagnet: "MagneticModuleEngageCommandId" = (
53
- "magneticModule/engageMagnet"
54
- )
55
- magneticModuleDisengageMagnet: "MagneticModuleDisengageCommandId" = (
56
- "magneticModule/disengageMagnet"
57
- )
58
-
59
-
60
- class JsonTemperatureModuleCommand(Enum):
61
- temperatureModuleSetTargetTemperature: "TemperatureModuleSetTargetCommandId" = (
62
- "temperatureModule/setTargetTemperature"
63
- )
64
- temperatureModuleDeactivate: "TemperatureModuleDeactivateCommandId" = (
65
- "temperatureModule/deactivate"
66
- )
67
- temperatureModuleAwaitTemperature: "TemperatureModuleAwaitCommandId" = (
68
- "temperatureModule/awaitTemperature"
69
- )
70
-
71
-
72
- class JsonThermocyclerCommand(Enum):
73
- thermocyclerSetTargetBlockTemperature: "ThermocyclerSetTargetBlockCommandId" = (
74
- "thermocycler/setTargetBlockTemperature"
75
- )
76
- thermocyclerSetTargetLidTemperature: "ThermocyclerSetTargetLidCommandId" = (
77
- "thermocycler/setTargetLidTemperature"
78
- )
79
- thermocyclerAwaitBlockTemperature: "ThermocyclerAwaitBlockTemperatureCommandId" = (
80
- "thermocycler/awaitBlockTemperature"
81
- )
82
- thermocyclerAwaitLidTemperature: "ThermocyclerAwaitLidTemperatureCommandId" = (
83
- "thermocycler/awaitLidTemperature"
84
- )
85
- thermocyclerOpenLid: "ThermocyclerOpenLidCommandId" = "thermocycler/openLid"
86
- thermocyclerCloseLid: "ThermocyclerCloseLidCommandId" = "thermocycler/closeLid"
87
- thermocyclerDeactivateBlock: "ThermocyclerDeactivateBlockCommandId" = (
88
- "thermocycler/deactivateBlock"
89
- )
90
- thermocyclerDeactivateLid: "ThermocyclerDeactivateLidCommandId" = (
91
- "thermocycler/deactivateLid"
92
- )
93
- thermocyclerRunProfile: "ThermocyclerRunProfileCommandId" = (
94
- "thermocycler/runProfile"
95
- )
96
- thermocyclerAwaitProfileComplete: "ThermocyclerAwaitProfileCommandId" = (
97
- "thermocycler/awaitProfileComplete"
98
- )
@@ -1,436 +0,0 @@
1
- """
2
- opentrons_shared_data.protocol.dev_types: types for json protocols
3
- """
4
-
5
- from typing import Any, Dict, List, Optional, Union
6
- from enum import Enum
7
-
8
- from typing_extensions import TypedDict, Literal
9
- from ..pipette.dev_types import PipetteName
10
- from ..labware.dev_types import LabwareDefinition
11
- from ..module.dev_types import ModuleModel
12
-
13
- SlotSpan = Literal["span7_8_10_11"]
14
-
15
-
16
- class BlowoutLocation(Enum):
17
- SOURCE = "source well"
18
- DEST = "destination well"
19
- TRASH = "trash"
20
-
21
-
22
- LiquidHandlingCommand = Union[
23
- Literal["transfer"], Literal["consolidate"], Literal["distribute"]
24
- ]
25
-
26
-
27
- class LabwareRequirement(TypedDict):
28
- slot: str
29
- definitionId: str
30
- displayName: str
31
-
32
-
33
- Metadata = TypedDict(
34
- "Metadata",
35
- {
36
- "protocolName": str,
37
- "protocol-name": str,
38
- "author": str,
39
- "description": Optional[str],
40
- "created": int,
41
- "lastModified": Optional[int],
42
- "last-modified": Optional[int],
43
- "category": Optional[str],
44
- "subcategory": Optional[str],
45
- "tags": List[str],
46
- },
47
- total=False,
48
- )
49
-
50
- AspirateCommandId = Literal["aspirate"]
51
- DispenseCommandId = Literal["dispense"]
52
- AirGapCommandId = Literal["airGap"]
53
- BlowoutCommandId = Literal["blowout"]
54
- TouchTipCommandId = Literal["touchTip"]
55
- PickUpTipCommandId = Literal["pickUpTip"]
56
- DropTipCommandId = Literal["dropTip"]
57
- MoveToSlotCommandId = Literal["moveToSlot"]
58
- MoveToWellCommandId = Literal["moveToWell"]
59
- DelayCommandId = Literal["delay"]
60
- MagneticModuleEngageCommandId = Literal["magneticModule/engageMagnet"]
61
- MagneticModuleDisengageCommandId = Literal["magneticModule/disengageMagnet"]
62
- TemperatureModuleSetTargetCommandId = Literal["temperatureModule/setTargetTemperature"]
63
- TemperatureModuleAwaitCommandId = Literal["temperatureModule/awaitTemperature"]
64
- TemperatureModuleDeactivateCommandId = Literal["temperatureModule/deactivate"]
65
- ThermocyclerSetTargetBlockCommandId = Literal["thermocycler/setTargetBlockTemperature"]
66
- ThermocyclerSetTargetLidCommandId = Literal["thermocycler/setTargetLidTemperature"]
67
- ThermocyclerAwaitLidTemperatureCommandId = Literal["thermocycler/awaitLidTemperature"]
68
- ThermocyclerAwaitBlockTemperatureCommandId = Literal[
69
- "thermocycler/awaitBlockTemperature"
70
- ]
71
- ThermocyclerDeactivateBlockCommandId = Literal["thermocycler/deactivateBlock"]
72
- ThermocyclerDeactivateLidCommandId = Literal["thermocycler/deactivateLid"]
73
- ThermocyclerOpenLidCommandId = Literal["thermocycler/openLid"]
74
- ThermocyclerCloseLidCommandId = Literal["thermocycler/closeLid"]
75
- ThermocyclerRunProfileCommandId = Literal["thermocycler/runProfile"]
76
- ThermocyclerAwaitProfileCommandId = Literal["thermocycler/awaitProfileComplete"]
77
-
78
-
79
- class NamedOffset(TypedDict):
80
- x: float
81
- y: float
82
- z: float
83
-
84
-
85
- class ModuleRequirement(TypedDict):
86
- slot: str
87
- model: "ModuleModel"
88
-
89
-
90
- class RobotRequirement(TypedDict):
91
- model: Literal["OT-2 Standard"]
92
-
93
-
94
- class PipetteRequirement(TypedDict):
95
- mount: Union[Literal["left"], Literal["right"]]
96
- name: PipetteName
97
-
98
-
99
- class PipetteAccessParams(TypedDict):
100
- pipette: str
101
- labware: str
102
- well: str
103
-
104
-
105
- class FlowRateParams(TypedDict):
106
- flowRate: float
107
-
108
-
109
- class PipetteAccessWithOffsetParams(PipetteAccessParams):
110
- offsetFromBottomMm: float
111
-
112
-
113
- class StandardLiquidHandlingParams(PipetteAccessWithOffsetParams, FlowRateParams):
114
- volume: float
115
-
116
-
117
- class AspirateCommand(TypedDict):
118
- command: AspirateCommandId
119
- params: StandardLiquidHandlingParams
120
-
121
-
122
- class DispenseCommand(TypedDict):
123
- command: DispenseCommandId
124
- params: StandardLiquidHandlingParams
125
-
126
-
127
- class AirGapCommand(TypedDict):
128
- command: AirGapCommandId
129
- params: StandardLiquidHandlingParams
130
-
131
-
132
- class BlowoutParams(PipetteAccessWithOffsetParams, FlowRateParams):
133
- pass
134
-
135
-
136
- class BlowoutCommand(TypedDict):
137
- command: BlowoutCommandId
138
- params: BlowoutParams
139
-
140
-
141
- class TouchTipParams(PipetteAccessParams):
142
- offsetFromBottomMm: float
143
-
144
-
145
- class TouchTipCommand(TypedDict):
146
- command: TouchTipCommandId
147
- params: TouchTipParams
148
-
149
-
150
- class PickUpTipCommand(TypedDict):
151
- command: PickUpTipCommandId
152
- params: PipetteAccessParams
153
-
154
-
155
- class DropTipCommand(TypedDict):
156
- command: DropTipCommandId
157
- params: PipetteAccessParams
158
-
159
-
160
- class MoveToSlotParams(TypedDict, total=False):
161
- pipette: str
162
- slot: str
163
- offset: NamedOffset
164
- minimumZHeight: float
165
- forceDirect: bool
166
-
167
-
168
- class MoveToSlotCommand(TypedDict):
169
- command: MoveToSlotCommandId
170
- params: MoveToSlotParams
171
-
172
-
173
- class MoveToWellParams(PipetteAccessParams, total=False):
174
- offset: NamedOffset
175
- minimumZHeight: float
176
- forceDirect: bool
177
-
178
-
179
- class MoveToWellCommand(TypedDict):
180
- command: MoveToWellCommandId
181
- params: MoveToWellParams
182
-
183
-
184
- class DelayParams(TypedDict, total=False):
185
- wait: Union[float, bool]
186
- message: str
187
-
188
-
189
- class DelayCommand(TypedDict):
190
- command: DelayCommandId
191
- params: DelayParams
192
-
193
-
194
- class ModuleIDParams(TypedDict):
195
- module: str
196
-
197
-
198
- class MagneticModuleEngageParams(ModuleIDParams):
199
- engageHeight: float
200
-
201
-
202
- class MagneticModuleEngageCommand(TypedDict):
203
- command: MagneticModuleEngageCommandId
204
- params: MagneticModuleEngageParams
205
-
206
-
207
- class MagneticModuleDisengageCommand(TypedDict):
208
- command: MagneticModuleDisengageCommandId
209
- params: ModuleIDParams
210
-
211
-
212
- class TemperatureParams(ModuleIDParams):
213
- temperature: float
214
-
215
-
216
- class TemperatureModuleSetTargetCommand(TypedDict):
217
- command: TemperatureModuleSetTargetCommandId
218
- params: TemperatureParams
219
-
220
-
221
- class TemperatureModuleAwaitCommand(TypedDict):
222
- command: TemperatureModuleAwaitCommandId
223
- params: TemperatureParams
224
-
225
-
226
- class TemperatureModuleDeactivateCommand(TypedDict):
227
- command: TemperatureModuleDeactivateCommandId
228
- params: ModuleIDParams
229
-
230
-
231
- class ThermocyclerSetTargetBlockParams(TemperatureParams, total=False):
232
- volume: float
233
-
234
-
235
- class ThermocyclerSetTargetBlockCommand(TypedDict):
236
- command: ThermocyclerSetTargetBlockCommandId
237
- params: ThermocyclerSetTargetBlockParams
238
-
239
-
240
- class ThermocyclerSetTargetLidCommand(TypedDict):
241
- command: ThermocyclerSetTargetLidCommandId
242
- params: TemperatureParams
243
-
244
-
245
- class ThermocyclerAwaitLidTemperatureCommand(TypedDict):
246
- command: ThermocyclerAwaitLidTemperatureCommandId
247
- params: TemperatureParams
248
-
249
-
250
- class ThermocyclerAwaitBlockTemperatureCommand(TypedDict):
251
- command: ThermocyclerAwaitBlockTemperatureCommandId
252
- params: TemperatureParams
253
-
254
-
255
- class ThermocyclerDeactivateBlockCommand(TypedDict):
256
- command: ThermocyclerDeactivateBlockCommandId
257
- params: ModuleIDParams
258
-
259
-
260
- class ThermocyclerDeactivateLidCommand(TypedDict):
261
- command: ThermocyclerDeactivateLidCommandId
262
- params: ModuleIDParams
263
-
264
-
265
- class ThermocyclerOpenLidCommand(TypedDict):
266
- command: ThermocyclerOpenLidCommandId
267
- params: ModuleIDParams
268
-
269
-
270
- class ThermocyclerCloseLidCommand(TypedDict):
271
- command: ThermocyclerCloseLidCommandId
272
- params: ModuleIDParams
273
-
274
-
275
- class ThermocyclerCycle(TypedDict):
276
- temperature: float
277
- holdTime: float
278
-
279
-
280
- class ThermocyclerRunProfileParams(TypedDict):
281
- module: str
282
- volume: float
283
- profile: List[ThermocyclerCycle]
284
-
285
-
286
- class ThermocyclerRunProfileCommand(TypedDict):
287
- command: ThermocyclerRunProfileCommandId
288
- params: ThermocyclerRunProfileParams
289
-
290
-
291
- class ThermocyclerAwaitProfileCommand(TypedDict):
292
- command: ThermocyclerAwaitProfileCommandId
293
- params: ModuleIDParams
294
-
295
-
296
- ThermocyclerCommand = Union[
297
- ThermocyclerAwaitProfileCommand,
298
- ThermocyclerRunProfileCommand,
299
- ThermocyclerCloseLidCommand,
300
- ThermocyclerOpenLidCommand,
301
- ThermocyclerDeactivateLidCommand,
302
- ThermocyclerDeactivateBlockCommand,
303
- ThermocyclerAwaitBlockTemperatureCommand,
304
- ThermocyclerAwaitLidTemperatureCommand,
305
- ThermocyclerSetTargetLidCommand,
306
- ThermocyclerSetTargetBlockCommand,
307
- ]
308
- ThermocyclerCommandId = Union[
309
- ThermocyclerAwaitProfileCommandId,
310
- ThermocyclerRunProfileCommandId,
311
- ThermocyclerCloseLidCommandId,
312
- ThermocyclerOpenLidCommandId,
313
- ThermocyclerDeactivateLidCommandId,
314
- ThermocyclerDeactivateBlockCommandId,
315
- ThermocyclerAwaitBlockTemperatureCommandId,
316
- ThermocyclerAwaitLidTemperatureCommandId,
317
- ThermocyclerSetTargetLidCommandId,
318
- ThermocyclerSetTargetBlockCommandId,
319
- ]
320
-
321
- TemperatureModuleCommand = Union[
322
- TemperatureModuleAwaitCommand,
323
- TemperatureModuleSetTargetCommand,
324
- TemperatureModuleDeactivateCommand,
325
- ]
326
- TemperatureModuleCommandId = Union[
327
- TemperatureModuleAwaitCommandId,
328
- TemperatureModuleSetTargetCommandId,
329
- TemperatureModuleDeactivateCommandId,
330
- ]
331
-
332
- MagneticModuleCommand = Union[
333
- MagneticModuleEngageCommand, MagneticModuleDisengageCommand
334
- ]
335
- MagneticModuleCommandId = Union[
336
- MagneticModuleEngageCommandId, MagneticModuleDisengageCommandId
337
- ]
338
-
339
-
340
- ModuleCommand = Union[
341
- ThermocyclerCommand, TemperatureModuleCommand, MagneticModuleCommand
342
- ]
343
- ModuleCommandId = Union[
344
- ThermocyclerCommandId, TemperatureModuleCommandId, MagneticModuleCommandId
345
- ]
346
-
347
- PipetteCommand = Union[
348
- AspirateCommand,
349
- DispenseCommand,
350
- AirGapCommand,
351
- BlowoutCommand,
352
- TouchTipCommand,
353
- PickUpTipCommand,
354
- DropTipCommand,
355
- MoveToSlotCommand,
356
- MoveToWellCommand,
357
- ]
358
- PipetteCommandId = Union[
359
- AspirateCommandId,
360
- DispenseCommandId,
361
- AirGapCommandId,
362
- BlowoutCommandId,
363
- TouchTipCommandId,
364
- PickUpTipCommandId,
365
- DropTipCommandId,
366
- MoveToSlotCommandId,
367
- MoveToWellCommandId,
368
- ]
369
-
370
- RobotCommand = Union[DelayCommand]
371
- RobotCommandId = Union[DelayCommandId]
372
-
373
- Command = Union[ModuleCommand, PipetteCommand, RobotCommand]
374
- CommandId = Union[ModuleCommandId, PipetteCommandId, RobotCommandId]
375
-
376
- V3Command = Union[PipetteCommand, RobotCommand]
377
- V3CommandId = Union[PipetteCommandId, RobotCommandId]
378
-
379
-
380
- class DesignerApplication(TypedDict):
381
- name: str
382
- version: str
383
- data: Dict[str, Any]
384
-
385
-
386
- JsonProtocolV4 = TypedDict(
387
- "JsonProtocolV4",
388
- {
389
- "$otSharedSchema": Literal["#/protocol/schemas/4"],
390
- "schemaVersion": Literal[4],
391
- "metadata": Metadata,
392
- "robot": RobotRequirement,
393
- "pipettes": Dict[str, PipetteRequirement],
394
- "labware": Dict[str, LabwareRequirement],
395
- "labwareDefinitions": Dict[str, LabwareDefinition],
396
- "modules": Dict[str, ModuleRequirement],
397
- "commands": List[Command],
398
- "commandAnnotations": Dict[str, Any],
399
- "designerApplication": DesignerApplication,
400
- },
401
- total=False,
402
- )
403
-
404
- JsonProtocolV5 = TypedDict(
405
- "JsonProtocolV5",
406
- {
407
- "$otSharedSchema": Literal["#/protocol/schemas/5"],
408
- "schemaVersion": Literal[5],
409
- "metadata": Metadata,
410
- "robot": RobotRequirement,
411
- "pipettes": Dict[str, PipetteRequirement],
412
- "labware": Dict[str, LabwareRequirement],
413
- "labwareDefinitions": Dict[str, LabwareDefinition],
414
- "modules": Dict[str, ModuleRequirement],
415
- "commands": List[Command],
416
- "commandAnnotations": Dict[str, Any],
417
- "designerApplication": DesignerApplication,
418
- },
419
- total=False,
420
- )
421
-
422
-
423
- class JsonProtocolV3(TypedDict, total=False):
424
- schemaVersion: Literal[3]
425
- metadata: Metadata
426
- robot: RobotRequirement
427
- pipettes: Dict[str, PipetteRequirement]
428
- labware: Dict[str, LabwareRequirement]
429
- labwareDefinitions: Dict[str, LabwareDefinition]
430
- commands: List[V3Command]
431
- commandAnnotations: Dict[str, Any]
432
- designerApplication: DesignerApplication
433
-
434
-
435
- # todo(mm, 2022-03-18): Should this include JsonProtocolV5?
436
- JsonProtocol = Union[JsonProtocolV4, JsonProtocolV3]
@@ -1,48 +0,0 @@
1
- """Protocol file reading interfaces."""
2
- from . import protocol_schema_v6, protocol_schema_v7, protocol_schema_v8
3
- from .protocol_schema_v6 import ProtocolSchemaV6
4
- from .protocol_schema_v7 import ProtocolSchemaV7
5
- from .protocol_schema_v8 import ProtocolSchemaV8
6
- from .shared_models import (
7
- Liquid,
8
- Labware,
9
- CommandAnnotation,
10
- Location,
11
- ProfileStep,
12
- WellLocation,
13
- OffsetVector,
14
- Dimensions,
15
- GroupMetadata,
16
- Shape,
17
- WellDefinition,
18
- Metadata,
19
- Module,
20
- Pipette,
21
- Robot,
22
- DesignerApplication,
23
- )
24
-
25
- __all__ = [
26
- "ProtocolSchemaV6",
27
- "protocol_schema_v6",
28
- "ProtocolSchemaV7",
29
- "protocol_schema_v7",
30
- "ProtocolSchemaV8",
31
- "protocol_schema_v8",
32
- "Liquid",
33
- "Labware",
34
- "CommandAnnotation",
35
- "Location",
36
- "ProfileStep",
37
- "WellLocation",
38
- "OffsetVector",
39
- "Dimensions",
40
- "GroupMetadata",
41
- "Shape",
42
- "WellDefinition",
43
- "Metadata",
44
- "Module",
45
- "Pipette",
46
- "Robot",
47
- "DesignerApplication",
48
- ]