@opentrons/shared-data 0.1.0-beta.6 → 0.1.1

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.
@@ -1,6 +1,71 @@
1
1
  {
2
2
  "title": "CreateCommandUnion",
3
3
  "description": "Model that validates a union of all CommandCreate models.",
4
+ "discriminator": {
5
+ "propertyName": "commandType",
6
+ "mapping": {
7
+ "aspirate": "#/definitions/AspirateCreate",
8
+ "aspirateInPlace": "#/definitions/AspirateInPlaceCreate",
9
+ "comment": "#/definitions/CommentCreate",
10
+ "configureForVolume": "#/definitions/ConfigureForVolumeCreate",
11
+ "configureNozzleLayout": "#/definitions/ConfigureNozzleLayoutCreate",
12
+ "custom": "#/definitions/CustomCreate",
13
+ "dispense": "#/definitions/DispenseCreate",
14
+ "dispenseInPlace": "#/definitions/DispenseInPlaceCreate",
15
+ "blowout": "#/definitions/BlowOutCreate",
16
+ "blowOutInPlace": "#/definitions/BlowOutInPlaceCreate",
17
+ "dropTip": "#/definitions/DropTipCreate",
18
+ "dropTipInPlace": "#/definitions/DropTipInPlaceCreate",
19
+ "home": "#/definitions/HomeCreate",
20
+ "retractAxis": "#/definitions/RetractAxisCreate",
21
+ "loadLabware": "#/definitions/LoadLabwareCreate",
22
+ "loadLiquid": "#/definitions/LoadLiquidCreate",
23
+ "loadModule": "#/definitions/LoadModuleCreate",
24
+ "loadPipette": "#/definitions/LoadPipetteCreate",
25
+ "moveLabware": "#/definitions/MoveLabwareCreate",
26
+ "moveRelative": "#/definitions/MoveRelativeCreate",
27
+ "moveToCoordinates": "#/definitions/MoveToCoordinatesCreate",
28
+ "moveToWell": "#/definitions/MoveToWellCreate",
29
+ "moveToAddressableArea": "#/definitions/MoveToAddressableAreaCreate",
30
+ "moveToAddressableAreaForDropTip": "#/definitions/MoveToAddressableAreaForDropTipCreate",
31
+ "prepareToAspirate": "#/definitions/PrepareToAspirateCreate",
32
+ "waitForResume": "#/definitions/WaitForResumeCreate",
33
+ "pause": "#/definitions/WaitForResumeCreate",
34
+ "waitForDuration": "#/definitions/WaitForDurationCreate",
35
+ "pickUpTip": "#/definitions/PickUpTipCreate",
36
+ "savePosition": "#/definitions/SavePositionCreate",
37
+ "setRailLights": "#/definitions/SetRailLightsCreate",
38
+ "touchTip": "#/definitions/TouchTipCreate",
39
+ "setStatusBar": "#/definitions/SetStatusBarCreate",
40
+ "verifyTipPresence": "#/definitions/VerifyTipPresenceCreate",
41
+ "getTipPresence": "#/definitions/GetTipPresenceCreate",
42
+ "heaterShaker/waitForTemperature": "#/definitions/opentrons__protocol_engine__commands__heater_shaker__wait_for_temperature__WaitForTemperatureCreate",
43
+ "heaterShaker/setTargetTemperature": "#/definitions/opentrons__protocol_engine__commands__heater_shaker__set_target_temperature__SetTargetTemperatureCreate",
44
+ "heaterShaker/deactivateHeater": "#/definitions/DeactivateHeaterCreate",
45
+ "heaterShaker/setAndWaitForShakeSpeed": "#/definitions/SetAndWaitForShakeSpeedCreate",
46
+ "heaterShaker/deactivateShaker": "#/definitions/DeactivateShakerCreate",
47
+ "heaterShaker/openLabwareLatch": "#/definitions/OpenLabwareLatchCreate",
48
+ "heaterShaker/closeLabwareLatch": "#/definitions/CloseLabwareLatchCreate",
49
+ "magneticModule/disengage": "#/definitions/DisengageCreate",
50
+ "magneticModule/engage": "#/definitions/EngageCreate",
51
+ "temperatureModule/setTargetTemperature": "#/definitions/opentrons__protocol_engine__commands__temperature_module__set_target_temperature__SetTargetTemperatureCreate",
52
+ "temperatureModule/waitForTemperature": "#/definitions/opentrons__protocol_engine__commands__temperature_module__wait_for_temperature__WaitForTemperatureCreate",
53
+ "temperatureModule/deactivate": "#/definitions/DeactivateTemperatureCreate",
54
+ "thermocycler/setTargetBlockTemperature": "#/definitions/SetTargetBlockTemperatureCreate",
55
+ "thermocycler/waitForBlockTemperature": "#/definitions/WaitForBlockTemperatureCreate",
56
+ "thermocycler/setTargetLidTemperature": "#/definitions/SetTargetLidTemperatureCreate",
57
+ "thermocycler/waitForLidTemperature": "#/definitions/WaitForLidTemperatureCreate",
58
+ "thermocycler/deactivateBlock": "#/definitions/DeactivateBlockCreate",
59
+ "thermocycler/deactivateLid": "#/definitions/DeactivateLidCreate",
60
+ "thermocycler/openLid": "#/definitions/OpenLidCreate",
61
+ "thermocycler/closeLid": "#/definitions/CloseLidCreate",
62
+ "thermocycler/runProfile": "#/definitions/RunProfileCreate",
63
+ "calibration/calibrateGripper": "#/definitions/CalibrateGripperCreate",
64
+ "calibration/calibratePipette": "#/definitions/CalibratePipetteCreate",
65
+ "calibration/calibrateModule": "#/definitions/CalibrateModuleCreate",
66
+ "calibration/moveToMaintenancePosition": "#/definitions/MoveToMaintenancePositionCreate"
67
+ }
68
+ },
4
69
  "anyOf": [
5
70
  {
6
71
  "$ref": "#/definitions/AspirateCreate"
@@ -259,8 +324,8 @@
259
324
  },
260
325
  "volume": {
261
326
  "title": "Volume",
262
- "description": "Amount of liquid in uL. Must be greater than 0 and less than a pipette-specific maximum volume.",
263
- "exclusiveMinimum": 0,
327
+ "description": "The amount of liquid to aspirate, in \u00b5L. Must not be greater than the remaining available amount, which depends on the pipette (see `loadPipette`), its configuration (see `configureForVolume`), the tip (see `pickUpTip`), and the amount you've aspirated so far. There is some tolerance for floating point rounding errors.",
328
+ "minimum": 0,
264
329
  "type": "number"
265
330
  },
266
331
  "pipetteId": {
@@ -320,8 +385,8 @@
320
385
  },
321
386
  "volume": {
322
387
  "title": "Volume",
323
- "description": "Amount of liquid in uL. Must be greater than 0 and less than a pipette-specific maximum volume.",
324
- "exclusiveMinimum": 0,
388
+ "description": "The amount of liquid to aspirate, in \u00b5L. Must not be greater than the remaining available amount, which depends on the pipette (see `loadPipette`), its configuration (see `configureForVolume`), the tip (see `pickUpTip`), and the amount you've aspirated so far. There is some tolerance for floating point rounding errors.",
389
+ "minimum": 0,
325
390
  "type": "number"
326
391
  },
327
392
  "pipetteId": {
@@ -410,19 +475,19 @@
410
475
  "description": "Parameters required to configure volume for a specific pipette.",
411
476
  "type": "object",
412
477
  "properties": {
413
- "volume": {
414
- "title": "Volume",
415
- "description": "Amount of liquid in uL. Must be greater than 0 and less than a pipette-specific maximum volume.",
416
- "exclusiveMinimum": 0,
417
- "type": "number"
418
- },
419
478
  "pipetteId": {
420
479
  "title": "Pipetteid",
421
480
  "description": "Identifier of pipette to use for liquid handling.",
422
481
  "type": "string"
482
+ },
483
+ "volume": {
484
+ "title": "Volume",
485
+ "description": "Amount of liquid in uL. Must be at least 0 and no greater than a pipette-specific maximum volume.",
486
+ "minimum": 0,
487
+ "type": "number"
423
488
  }
424
489
  },
425
- "required": ["volume", "pipetteId"]
490
+ "required": ["pipetteId", "volume"]
426
491
  },
427
492
  "ConfigureForVolumeCreate": {
428
493
  "title": "ConfigureForVolumeCreate",
@@ -684,8 +749,8 @@
684
749
  },
685
750
  "volume": {
686
751
  "title": "Volume",
687
- "description": "Amount of liquid in uL. Must be greater than 0 and less than a pipette-specific maximum volume.",
688
- "exclusiveMinimum": 0,
752
+ "description": "The amount of liquid to dispense, in \u00b5L. Must not be greater than the currently aspirated volume. There is some tolerance for floating point rounding errors.",
753
+ "minimum": 0,
689
754
  "type": "number"
690
755
  },
691
756
  "pipetteId": {
@@ -744,8 +809,8 @@
744
809
  },
745
810
  "volume": {
746
811
  "title": "Volume",
747
- "description": "Amount of liquid in uL. Must be greater than 0 and less than a pipette-specific maximum volume.",
748
- "exclusiveMinimum": 0,
812
+ "description": "The amount of liquid to dispense, in \u00b5L. Must not be greater than the currently aspirated volume. There is some tolerance for floating point rounding errors.",
813
+ "minimum": 0,
749
814
  "type": "number"
750
815
  },
751
816
  "pipetteId": {
@@ -1965,6 +2030,12 @@
1965
2030
  "$ref": "#/definitions/AddressableOffsetVector"
1966
2031
  }
1967
2032
  ]
2033
+ },
2034
+ "stayAtHighestPossibleZ": {
2035
+ "title": "Stayathighestpossiblez",
2036
+ "description": "If `true`, the pipette will retract to its highest possible height and stay there instead of descending to the destination. `minimumZHeight` will be ignored.",
2037
+ "default": false,
2038
+ "type": "boolean"
1968
2039
  }
1969
2040
  },
1970
2041
  "required": ["pipetteId", "addressableAreaName"]
@@ -1,4 +1,5 @@
1
1
  import type { CommonCommandRunTimeInfo, CommonCommandCreateInfo } from '.'
2
+ import type { AddressableAreaName } from '../../deck'
2
3
  import type {
3
4
  Coordinates,
4
5
  MotorAxes,
@@ -175,9 +176,10 @@ interface AddressableOffsetVector {
175
176
  }
176
177
  export interface MoveToAddressableAreaParams {
177
178
  pipetteId: string
178
- addressableAreaName: string
179
+ addressableAreaName: AddressableAreaName
179
180
  offset: AddressableOffsetVector
180
181
  speed?: number
181
182
  minimumZHeight?: number
182
183
  forceDirect?: boolean
184
+ stayAtHighestPossibleZ?: boolean
183
185
  }
@@ -1,3 +1,4 @@
1
+ import type { AddressableAreaName } from '../../deck'
1
2
  import type { CommonCommandRunTimeInfo, CommonCommandCreateInfo } from '.'
2
3
  export type PipettingRunTimeCommand =
3
4
  | AspirateInPlaceRunTimeCommand
@@ -224,7 +225,7 @@ export interface DropTipInPlaceParams {
224
225
 
225
226
  export interface MoveToAddressableAreaForDropTipParams {
226
227
  pipetteId: string
227
- addressableAreaName: string
228
+ addressableAreaName: AddressableAreaName
228
229
  offset?: AddressableOffsetVector
229
230
  alternateDropLocation?: boolean
230
231
  speed?: number
@@ -1,11 +1,11 @@
1
1
  import type {
2
+ AddressableAreaName,
2
3
  CommonCommandRunTimeInfo,
3
4
  CommonCommandCreateInfo,
4
5
  LabwareDefinition2,
5
6
  LabwareOffset,
6
7
  PipetteName,
7
8
  ModuleModel,
8
- Cutout,
9
9
  } from '../../js'
10
10
 
11
11
  export interface LoadPipetteCreateCommand extends CommonCommandCreateInfo {
@@ -59,16 +59,6 @@ export interface LoadLiquidRunTimeCommand
59
59
  LoadLiquidCreateCommand {
60
60
  result?: LoadLiquidResult
61
61
  }
62
- // TODO(jr, 10/31/23): update `loadFixture` to `loadAddressableArea`
63
- export interface LoadFixtureCreateCommand extends CommonCommandCreateInfo {
64
- commandType: 'loadFixture'
65
- params: LoadFixtureParams
66
- }
67
- export interface LoadFixtureRunTimeCommand
68
- extends CommonCommandRunTimeInfo,
69
- LoadFixtureCreateCommand {
70
- result?: LoadLabwareResult
71
- }
72
62
 
73
63
  export interface ConfigureNozzleLayoutCreateCommand
74
64
  extends CommonCommandCreateInfo {
@@ -86,7 +76,6 @@ export type SetupRunTimeCommand =
86
76
  | ConfigureNozzleLayoutRunTimeCommand
87
77
  | LoadPipetteRunTimeCommand
88
78
  | LoadLabwareRunTimeCommand
89
- | LoadFixtureRunTimeCommand
90
79
  | LoadModuleRunTimeCommand
91
80
  | LoadLiquidRunTimeCommand
92
81
  | MoveLabwareRunTimeCommand
@@ -95,7 +84,6 @@ export type SetupCreateCommand =
95
84
  | ConfigureNozzleLayoutCreateCommand
96
85
  | LoadPipetteCreateCommand
97
86
  | LoadLabwareCreateCommand
98
- | LoadFixtureCreateCommand
99
87
  | LoadModuleCreateCommand
100
88
  | LoadLiquidCreateCommand
101
89
  | MoveLabwareCreateCommand
@@ -105,13 +93,13 @@ export type LabwareLocation =
105
93
  | { slotName: string }
106
94
  | { moduleId: string }
107
95
  | { labwareId: string }
108
- | { addressableAreaName: string }
96
+ | { addressableAreaName: AddressableAreaName }
109
97
 
110
98
  export type NonStackedLocation =
111
99
  | 'offDeck'
112
100
  | { slotName: string }
113
101
  | { moduleId: string }
114
- | { addressableAreaName: string }
102
+ | { addressableAreaName: AddressableAreaName }
115
103
 
116
104
  export interface ModuleLocation {
117
105
  slotName: string
@@ -169,12 +157,6 @@ interface LoadLiquidResult {
169
157
  liquidId: string
170
158
  }
171
159
 
172
- interface LoadFixtureParams {
173
- location: { cutout: Cutout }
174
- loadName: string
175
- fixtureId?: string
176
- }
177
-
178
160
  export const COLUMN = 'COLUMN'
179
161
  const SINGLE = 'SINGLE'
180
162
  const ROW = 'ROW'
@@ -61,6 +61,20 @@ export type CutoutId =
61
61
  | 'cutoutA2'
62
62
  | 'cutoutA3'
63
63
 
64
+ export type OT2CutoutId =
65
+ | 'cutout1'
66
+ | 'cutout2'
67
+ | 'cutout3'
68
+ | 'cutout4'
69
+ | 'cutout5'
70
+ | 'cutout6'
71
+ | 'cutout7'
72
+ | 'cutout8'
73
+ | 'cutout9'
74
+ | 'cutout10'
75
+ | 'cutout11'
76
+ | 'cutout12'
77
+
64
78
  export type SingleSlotCutoutFixtureId =
65
79
  | 'singleLeftSlot'
66
80
  | 'singleCenterSlot'
@@ -76,11 +90,14 @@ export type WasteChuteCutoutFixtureId =
76
90
  | 'stagingAreaSlotWithWasteChuteRightAdapterCovered'
77
91
  | 'stagingAreaSlotWithWasteChuteRightAdapterNoCover'
78
92
 
93
+ export type OT2SingleStandardSlot = 'singleStandardSlot'
94
+
95
+ export type OT2FixedTrashSlot = 'fixedTrashSlot'
96
+
79
97
  export type CutoutFixtureId =
80
98
  | SingleSlotCutoutFixtureId
81
99
  | StagingAreaRightSlotFixtureId
82
100
  | TrashBinAdapterCutoutFixtureId
83
101
  | WasteChuteCutoutFixtureId
84
- | 'stagingAreaRightSlot'
85
- | 'trashBinAdapter'
86
- | 'fixedTrashSlot'
102
+ | OT2SingleStandardSlot
103
+ | OT2FixedTrashSlot
@@ -55,7 +55,7 @@
55
55
  "z": 10.7
56
56
  }
57
57
  },
58
- "gripForce": 9,
58
+ "gripForce": 15,
59
59
  "gripHeightFromLabwareBottom": 10,
60
60
  "ordering": [
61
61
  ["A1", "B1", "C1", "D1", "E1", "F1", "G1", "H1"],
@@ -55,7 +55,7 @@
55
55
  "z": 10.7
56
56
  }
57
57
  },
58
- "gripForce": 9,
58
+ "gripForce": 15,
59
59
  "gripHeightFromLabwareBottom": 10,
60
60
  "ordering": [
61
61
  ["A1", "B1", "C1", "D1", "E1", "F1", "G1", "H1"],