@opentrons/shared-data 0.0.0-alpha.2
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.
- package/Makefile +100 -0
- package/command/schemas/7.json +3301 -0
- package/command/schemas/8.json +3632 -0
- package/command/types/annotation.ts +37 -0
- package/command/types/calibration.ts +84 -0
- package/command/types/gantry.ts +176 -0
- package/command/types/incidental.ts +21 -0
- package/command/types/index.ts +77 -0
- package/command/types/module.ts +307 -0
- package/command/types/pipetting.ts +228 -0
- package/command/types/setup.ts +199 -0
- package/command/types/timing.ts +58 -0
- package/commandAnnotation/schemas/1.json +74 -0
- package/commandAnnotation/types/index.ts +19 -0
- package/deck/definitions/3/ot2_short_trash.json +477 -0
- package/deck/definitions/3/ot2_standard.json +477 -0
- package/deck/definitions/3/ot3_standard.json +989 -0
- package/deck/definitions/4/ot2_short_trash.json +403 -0
- package/deck/definitions/4/ot2_standard.json +403 -0
- package/deck/definitions/4/ot3_standard.json +597 -0
- package/deck/fixtures/3/deckExample.json +481 -0
- package/deck/index.ts +1 -0
- package/deck/schemas/1.json +240 -0
- package/deck/schemas/2.json +250 -0
- package/deck/schemas/3.json +297 -0
- package/deck/schemas/4.json +321 -0
- package/deck/types/schemaV4.ts +84 -0
- package/errors/definitions/1/errors.json +222 -0
- package/errors/schemas/1.json +50 -0
- package/gripper/definitions/1/gripperV1.1.json +28 -0
- package/gripper/definitions/1/gripperV1.2.json +28 -0
- package/gripper/definitions/1/gripperV1.json +27 -0
- package/gripper/schemas/1.json +181 -0
- package/js/__tests__/__snapshots__/pipettes.test.ts.snap +5969 -0
- package/js/__tests__/deckSchemas.test.ts +87 -0
- package/js/__tests__/errors.test.js +21 -0
- package/js/__tests__/getAreSlotsAdjacent.test.ts +128 -0
- package/js/__tests__/getWellNamePerMultiTip.test.ts +162 -0
- package/js/__tests__/labwareDefQuirks.test.ts +37 -0
- package/js/__tests__/labwareDefSchemaV1.test.ts +82 -0
- package/js/__tests__/labwareDefSchemaV2.test.ts +298 -0
- package/js/__tests__/moduleAccessors.test.ts +50 -0
- package/js/__tests__/moduleSpecsSchema.test.ts +77 -0
- package/js/__tests__/pipetteSchemaV2.test.ts +107 -0
- package/js/__tests__/pipetteSpecSchemas.test.ts +48 -0
- package/js/__tests__/pipettes.test.ts +58 -0
- package/js/__tests__/protocolSchemaV4.test.ts +137 -0
- package/js/__tests__/protocolSchemaV5.test.ts +137 -0
- package/js/__tests__/protocolSchemaV6.test.ts +132 -0
- package/js/__tests__/protocolSchemaV7.test.ts +64 -0
- package/js/__tests__/protocolValidation.test.ts +83 -0
- package/js/__tests__/sortWells.test.ts +40 -0
- package/js/__tests__/splitWellsOnColumn.test.ts +21 -0
- package/js/__tests__/validateErrors.test.js +34 -0
- package/js/constants.ts +336 -0
- package/js/cypressUtils.ts +35 -0
- package/js/errors.ts +33 -0
- package/js/fixtures.ts +161 -0
- package/js/getLabware.ts +162 -0
- package/js/gripper.ts +29 -0
- package/js/helpers/__tests__/getAdapterName.test.ts +31 -0
- package/js/helpers/__tests__/getDeckDefFromLoadedLabware.test.ts +12 -0
- package/js/helpers/__tests__/getVectorDifference.test.ts +25 -0
- package/js/helpers/__tests__/getVectorSum.test.ts +21 -0
- package/js/helpers/__tests__/labwareInference.test.ts +84 -0
- package/js/helpers/__tests__/orderWells.test.ts +87 -0
- package/js/helpers/__tests__/parseProtocolData.test.ts +165 -0
- package/js/helpers/__tests__/volume.test.ts +108 -0
- package/js/helpers/__tests__/wellSets.test.ts +352 -0
- package/js/helpers/get96Channel384WellPlateWells.ts +44 -0
- package/js/helpers/getLoadedLabwareDefinitionsByUri.ts +30 -0
- package/js/helpers/getModuleVizDims.ts +118 -0
- package/js/helpers/getOccludedSlotCountForModule.ts +13 -0
- package/js/helpers/getVectorDifference.ts +12 -0
- package/js/helpers/getVectorSum.ts +12 -0
- package/js/helpers/getWellNamePerMultiTip.ts +86 -0
- package/js/helpers/getWellTotalVolume.ts +16 -0
- package/js/helpers/index.ts +346 -0
- package/js/helpers/labwareInference.ts +92 -0
- package/js/helpers/orderWells.ts +69 -0
- package/js/helpers/parseProtocolData.ts +141 -0
- package/js/helpers/volume.ts +35 -0
- package/js/helpers/wellIsRect.ts +6 -0
- package/js/helpers/wellSets.ts +150 -0
- package/js/index.ts +14 -0
- package/js/labwareTools/__tests__/__snapshots__/createIrregularLabware.test.ts.snap +3 -0
- package/js/labwareTools/__tests__/__snapshots__/createLabware.test.ts.snap +3 -0
- package/js/labwareTools/__tests__/createDefaultDisplayName.test.ts +111 -0
- package/js/labwareTools/__tests__/createIrregularLabware.test.ts +226 -0
- package/js/labwareTools/__tests__/createLabware.test.ts +147 -0
- package/js/labwareTools/index.ts +452 -0
- package/js/modules.ts +97 -0
- package/js/pipettes.ts +89 -0
- package/js/protocols.ts +290 -0
- package/js/schema.ts +80 -0
- package/js/scripts/build.js +32 -0
- package/js/scripts/generateDeckLayersFromSVG.js +46 -0
- package/js/titleCase.ts +30 -0
- package/js/types.ts +600 -0
- package/labware/definitions/1/12-well-plate.json +147 -0
- package/labware/definitions/1/24-vial-rack.json +281 -0
- package/labware/definitions/1/24-well-plate.json +281 -0
- package/labware/definitions/1/384-plate.json +4667 -0
- package/labware/definitions/1/48-vial-plate.json +547 -0
- package/labware/definitions/1/48-well-plate.json +547 -0
- package/labware/definitions/1/5ml-3x4.json +147 -0
- package/labware/definitions/1/6-well-plate.json +80 -0
- package/labware/definitions/1/96-PCR-flat.json +1079 -0
- package/labware/definitions/1/96-PCR-tall.json +1079 -0
- package/labware/definitions/1/96-deep-well.json +1079 -0
- package/labware/definitions/1/96-flat.json +1079 -0
- package/labware/definitions/1/96-well-plate-20mm.json +1079 -0
- package/labware/definitions/1/MALDI-plate.json +4282 -0
- package/labware/definitions/1/PCR-strip-tall.json +1079 -0
- package/labware/definitions/1/T25-flask.json +20 -0
- package/labware/definitions/1/T75-flask.json +20 -0
- package/labware/definitions/1/alum-block-pcr-strips.json +188 -0
- package/labware/definitions/1/biorad-hardshell-96-PCR.json +1079 -0
- package/labware/definitions/1/e-gelgol.json +1078 -0
- package/labware/definitions/1/fixed-trash.json +19 -0
- package/labware/definitions/1/hampton-1ml-deep-block.json +1078 -0
- package/labware/definitions/1/opentrons-aluminum-block-2ml-eppendorf.json +281 -0
- package/labware/definitions/1/opentrons-aluminum-block-2ml-screwcap.json +281 -0
- package/labware/definitions/1/opentrons-aluminum-block-96-PCR-plate.json +1079 -0
- package/labware/definitions/1/opentrons-aluminum-block-PCR-strips-200ul.json +1079 -0
- package/labware/definitions/1/opentrons-tiprack-10ul.json +986 -0
- package/labware/definitions/1/opentrons-tiprack-300ul.json +986 -0
- package/labware/definitions/1/opentrons-tuberack-1.5ml-eppendorf.json +281 -0
- package/labware/definitions/1/opentrons-tuberack-15_50ml.json +125 -0
- package/labware/definitions/1/opentrons-tuberack-15ml.json +181 -0
- package/labware/definitions/1/opentrons-tuberack-2ml-eppendorf.json +281 -0
- package/labware/definitions/1/opentrons-tuberack-2ml-screwcap.json +281 -0
- package/labware/definitions/1/opentrons-tuberack-50ml.json +80 -0
- package/labware/definitions/1/point.json +18 -0
- package/labware/definitions/1/rigaku-compact-crystallization-plate.json +2146 -0
- package/labware/definitions/1/small_vial_rack_16x45.json +280 -0
- package/labware/definitions/1/tall-fixed-trash.json +19 -0
- package/labware/definitions/1/tiprack-1000ul-H.json +503 -0
- package/labware/definitions/1/tiprack-1000ul-chem.json +1034 -0
- package/labware/definitions/1/tiprack-1000ul.json +986 -0
- package/labware/definitions/1/tiprack-10ul-H.json +503 -0
- package/labware/definitions/1/tiprack-10ul.json +986 -0
- package/labware/definitions/1/tiprack-200ul.json +986 -0
- package/labware/definitions/1/trash-box.json +20 -0
- package/labware/definitions/1/trough-12row-short.json +143 -0
- package/labware/definitions/1/trough-12row.json +143 -0
- package/labware/definitions/1/trough-1row-25ml.json +21 -0
- package/labware/definitions/1/tube-rack-.75ml.json +281 -0
- package/labware/definitions/1/tube-rack-15_50ml.json +125 -0
- package/labware/definitions/1/tube-rack-2ml-9x9.json +911 -0
- package/labware/definitions/1/tube-rack-2ml.json +281 -0
- package/labware/definitions/1/tube-rack-5ml-96.json +1079 -0
- package/labware/definitions/1/tube-rack-80well.json +907 -0
- package/labware/definitions/1/wheaton_vial_rack.json +565 -0
- package/labware/definitions/2/agilent_1_reservoir_290ml/1.json +54 -0
- package/labware/definitions/2/appliedbiosystemsmicroamp_384_wellplate_40ul/1.json +4320 -0
- package/labware/definitions/2/armadillo_96_wellplate_200ul_pcr_full_skirt/1.json +1019 -0
- package/labware/definitions/2/armadillo_96_wellplate_200ul_pcr_full_skirt/2.json +1045 -0
- package/labware/definitions/2/axygen_1_reservoir_90ml/1.json +56 -0
- package/labware/definitions/2/biorad_384_wellplate_50ul/1.json +4329 -0
- package/labware/definitions/2/biorad_384_wellplate_50ul/2.json +4331 -0
- package/labware/definitions/2/biorad_96_wellplate_200ul_pcr/1.json +1020 -0
- package/labware/definitions/2/biorad_96_wellplate_200ul_pcr/2.json +1036 -0
- package/labware/definitions/2/corning_12_wellplate_6.9ml_flat/1.json +171 -0
- package/labware/definitions/2/corning_12_wellplate_6.9ml_flat/2.json +180 -0
- package/labware/definitions/2/corning_24_wellplate_3.4ml_flat/1.json +293 -0
- package/labware/definitions/2/corning_24_wellplate_3.4ml_flat/2.json +300 -0
- package/labware/definitions/2/corning_384_wellplate_112ul_flat/1.json +4703 -0
- package/labware/definitions/2/corning_384_wellplate_112ul_flat/2.json +4717 -0
- package/labware/definitions/2/corning_48_wellplate_1.6ml_flat/1.json +535 -0
- package/labware/definitions/2/corning_48_wellplate_1.6ml_flat/2.json +544 -0
- package/labware/definitions/2/corning_6_wellplate_16.8ml_flat/1.json +103 -0
- package/labware/definitions/2/corning_6_wellplate_16.8ml_flat/2.json +110 -0
- package/labware/definitions/2/corning_96_wellplate_360ul_flat/1.json +1049 -0
- package/labware/definitions/2/corning_96_wellplate_360ul_flat/2.json +1063 -0
- package/labware/definitions/2/eppendorf_96_tiprack_1000ul_eptips/1.json +1019 -0
- package/labware/definitions/2/eppendorf_96_tiprack_10ul_eptips/1.json +1019 -0
- package/labware/definitions/2/geb_96_tiprack_1000ul/1.json +1017 -0
- package/labware/definitions/2/geb_96_tiprack_10ul/1.json +1017 -0
- package/labware/definitions/2/nest_12_reservoir_15ml/1.json +190 -0
- package/labware/definitions/2/nest_1_reservoir_195ml/1.json +54 -0
- package/labware/definitions/2/nest_1_reservoir_195ml/2.json +56 -0
- package/labware/definitions/2/nest_1_reservoir_290ml/1.json +54 -0
- package/labware/definitions/2/nest_96_wellplate_100ul_pcr_full_skirt/1.json +1018 -0
- package/labware/definitions/2/nest_96_wellplate_100ul_pcr_full_skirt/2.json +1039 -0
- package/labware/definitions/2/nest_96_wellplate_200ul_flat/1.json +1017 -0
- package/labware/definitions/2/nest_96_wellplate_200ul_flat/2.json +1031 -0
- package/labware/definitions/2/nest_96_wellplate_2ml_deep/1.json +1121 -0
- package/labware/definitions/2/nest_96_wellplate_2ml_deep/2.json +1137 -0
- package/labware/definitions/2/opentrons_10_tuberack_falcon_4x50ml_6x15ml_conical/1.json +164 -0
- package/labware/definitions/2/opentrons_10_tuberack_falcon_4x50ml_6x15ml_conical_acrylic/1.json +162 -0
- package/labware/definitions/2/opentrons_10_tuberack_nest_4x50ml_6x15ml_conical/1.json +160 -0
- package/labware/definitions/2/opentrons_15_tuberack_falcon_15ml_conical/1.json +211 -0
- package/labware/definitions/2/opentrons_15_tuberack_nest_15ml_conical/1.json +209 -0
- package/labware/definitions/2/opentrons_1_trash_1100ml_fixed/1.json +50 -0
- package/labware/definitions/2/opentrons_1_trash_3200ml_fixed/1.json +50 -0
- package/labware/definitions/2/opentrons_1_trash_850ml_fixed/1.json +50 -0
- package/labware/definitions/2/opentrons_24_aluminumblock_generic_2ml_screwcap/1.json +300 -0
- package/labware/definitions/2/opentrons_24_aluminumblock_generic_2ml_screwcap/2.json +301 -0
- package/labware/definitions/2/opentrons_24_aluminumblock_nest_0.5ml_screwcap/1.json +299 -0
- package/labware/definitions/2/opentrons_24_aluminumblock_nest_1.5ml_screwcap/1.json +299 -0
- package/labware/definitions/2/opentrons_24_aluminumblock_nest_1.5ml_snapcap/1.json +301 -0
- package/labware/definitions/2/opentrons_24_aluminumblock_nest_2ml_screwcap/1.json +299 -0
- package/labware/definitions/2/opentrons_24_aluminumblock_nest_2ml_snapcap/1.json +301 -0
- package/labware/definitions/2/opentrons_24_tuberack_eppendorf_1.5ml_safelock_snapcap/1.json +312 -0
- package/labware/definitions/2/opentrons_24_tuberack_eppendorf_2ml_safelock_snapcap/1.json +311 -0
- package/labware/definitions/2/opentrons_24_tuberack_eppendorf_2ml_safelock_snapcap_acrylic/1.json +309 -0
- package/labware/definitions/2/opentrons_24_tuberack_generic_0.75ml_snapcap_acrylic/1.json +298 -0
- package/labware/definitions/2/opentrons_24_tuberack_generic_2ml_screwcap/1.json +300 -0
- package/labware/definitions/2/opentrons_24_tuberack_nest_0.5ml_screwcap/1.json +300 -0
- package/labware/definitions/2/opentrons_24_tuberack_nest_1.5ml_screwcap/1.json +300 -0
- package/labware/definitions/2/opentrons_24_tuberack_nest_1.5ml_snapcap/1.json +302 -0
- package/labware/definitions/2/opentrons_24_tuberack_nest_2ml_screwcap/1.json +300 -0
- package/labware/definitions/2/opentrons_24_tuberack_nest_2ml_snapcap/1.json +302 -0
- package/labware/definitions/2/opentrons_40_aluminumblock_eppendorf_24x2ml_safelock_snapcap_generic_16x0.2ml_pcr_strip/1.json +481 -0
- package/labware/definitions/2/opentrons_6_tuberack_falcon_50ml_conical/1.json +112 -0
- package/labware/definitions/2/opentrons_6_tuberack_nest_50ml_conical/1.json +110 -0
- package/labware/definitions/2/opentrons_96_aluminumblock_biorad_wellplate_200ul/1.json +1029 -0
- package/labware/definitions/2/opentrons_96_aluminumblock_generic_pcr_strip_200ul/1.json +1026 -0
- package/labware/definitions/2/opentrons_96_aluminumblock_generic_pcr_strip_200ul/2.json +1027 -0
- package/labware/definitions/2/opentrons_96_aluminumblock_nest_wellplate_100ul/1.json +1027 -0
- package/labware/definitions/2/opentrons_96_deep_well_adapter/1.json +41 -0
- package/labware/definitions/2/opentrons_96_deep_well_adapter_nest_wellplate_2ml_deep/1.json +1121 -0
- package/labware/definitions/2/opentrons_96_filtertiprack_1000ul/1.json +1017 -0
- package/labware/definitions/2/opentrons_96_filtertiprack_10ul/1.json +1017 -0
- package/labware/definitions/2/opentrons_96_filtertiprack_200ul/1.json +1017 -0
- package/labware/definitions/2/opentrons_96_filtertiprack_20ul/1.json +1017 -0
- package/labware/definitions/2/opentrons_96_flat_bottom_adapter/1.json +41 -0
- package/labware/definitions/2/opentrons_96_flat_bottom_adapter_nest_wellplate_200ul_flat/1.json +1027 -0
- package/labware/definitions/2/opentrons_96_pcr_adapter/1.json +1032 -0
- package/labware/definitions/2/opentrons_96_pcr_adapter_armadillo_wellplate_200ul/1.json +1027 -0
- package/labware/definitions/2/opentrons_96_pcr_adapter_nest_wellplate_100ul_pcr_full_skirt/1.json +1025 -0
- package/labware/definitions/2/opentrons_96_tiprack_1000ul/1.json +1019 -0
- package/labware/definitions/2/opentrons_96_tiprack_10ul/1.json +1019 -0
- package/labware/definitions/2/opentrons_96_tiprack_20ul/1.json +1019 -0
- package/labware/definitions/2/opentrons_96_tiprack_300ul/1.json +1019 -0
- package/labware/definitions/2/opentrons_96_well_aluminum_block/1.json +1032 -0
- package/labware/definitions/2/opentrons_96_wellplate_200ul_pcr_full_skirt/1.json +1019 -0
- package/labware/definitions/2/opentrons_96_wellplate_200ul_pcr_full_skirt/2.json +1045 -0
- package/labware/definitions/2/opentrons_aluminum_flat_bottom_plate/1.json +41 -0
- package/labware/definitions/2/opentrons_calibration_adapter_heatershaker_module/1.json +62 -0
- package/labware/definitions/2/opentrons_calibration_adapter_temperature_module/1.json +62 -0
- package/labware/definitions/2/opentrons_calibration_adapter_thermocycler_module/1.json +69 -0
- package/labware/definitions/2/opentrons_calibrationblock_short_side_left/1.json +71 -0
- package/labware/definitions/2/opentrons_calibrationblock_short_side_right/1.json +71 -0
- package/labware/definitions/2/opentrons_flex_96_filtertiprack_1000ul/1.json +1026 -0
- package/labware/definitions/2/opentrons_flex_96_filtertiprack_200ul/1.json +1026 -0
- package/labware/definitions/2/opentrons_flex_96_filtertiprack_50ul/1.json +1026 -0
- package/labware/definitions/2/opentrons_flex_96_tiprack_1000ul/1.json +1026 -0
- package/labware/definitions/2/opentrons_flex_96_tiprack_200ul/1.json +1026 -0
- package/labware/definitions/2/opentrons_flex_96_tiprack_50ul/1.json +1026 -0
- package/labware/definitions/2/opentrons_flex_96_tiprack_adapter/1.json +41 -0
- package/labware/definitions/2/opentrons_universal_flat_adapter/1.json +151 -0
- package/labware/definitions/2/opentrons_universal_flat_adapter_corning_384_wellplate_112ul_flat/1.json +4710 -0
- package/labware/definitions/2/thermoscientificnunc_96_wellplate_1300ul/1.json +1019 -0
- package/labware/definitions/2/thermoscientificnunc_96_wellplate_2000ul/1.json +1019 -0
- package/labware/definitions/2/tipone_96_tiprack_200ul/1.json +1017 -0
- package/labware/definitions/2/usascientific_12_reservoir_22ml/1.json +192 -0
- package/labware/definitions/2/usascientific_96_wellplate_2.4ml_deep/1.json +1116 -0
- package/labware/fixtures/2/fixture_12_trough.json +188 -0
- package/labware/fixtures/2/fixture_12_trough_v2.json +188 -0
- package/labware/fixtures/2/fixture_24_tuberack.json +295 -0
- package/labware/fixtures/2/fixture_384_plate.json +4316 -0
- package/labware/fixtures/2/fixture_96_plate.json +1015 -0
- package/labware/fixtures/2/fixture_flex_96_tiprack_1000ul.json +1026 -0
- package/labware/fixtures/2/fixture_flex_96_tiprack_adapter.json +41 -0
- package/labware/fixtures/2/fixture_irregular_example_1.json +600 -0
- package/labware/fixtures/2/fixture_overlappy_wellplate.json +1113 -0
- package/labware/fixtures/2/fixture_regular_example_1.json +57 -0
- package/labware/fixtures/2/fixture_regular_example_2.json +95 -0
- package/labware/fixtures/2/fixture_tiprack_1000_ul.json +1015 -0
- package/labware/fixtures/2/fixture_tiprack_10_ul.json +1015 -0
- package/labware/fixtures/2/fixture_tiprack_300_ul.json +1014 -0
- package/labware/fixtures/2/fixture_trash.json +50 -0
- package/labware/schemas/2.json +372 -0
- package/liquid/schemas/1.json +21 -0
- package/liquid/types/index.ts +5 -0
- package/module/definitions/1.json +57 -0
- package/module/definitions/2/magneticModuleV1.json +22 -0
- package/module/definitions/2/magneticModuleV2.json +69 -0
- package/module/definitions/2/temperatureModuleV1.json +22 -0
- package/module/definitions/2/temperatureModuleV2.json +69 -0
- package/module/definitions/2/thermocyclerModuleV1.json +23 -0
- package/module/definitions/3/heaterShakerModuleV1.json +521 -0
- package/module/definitions/3/magneticBlockV1.json +199 -0
- package/module/definitions/3/magneticModuleV1.json +435 -0
- package/module/definitions/3/magneticModuleV2.json +488 -0
- package/module/definitions/3/temperatureModuleV1.json +190 -0
- package/module/definitions/3/temperatureModuleV2.json +315 -0
- package/module/definitions/3/thermocyclerModuleV1.json +1380 -0
- package/module/definitions/3/thermocyclerModuleV2.json +3686 -0
- package/module/fixtures/3/compatibleGenerationV1.json +69 -0
- package/module/fixtures/3/compatibleGenerationV2.json +69 -0
- package/module/fixtures/3/incompatibleGenerationV1.json +22 -0
- package/module/fixtures/3/incompatibleGenerationV2.json +69 -0
- package/module/schemas/1.json +55 -0
- package/module/schemas/2.json +112 -0
- package/module/schemas/3.json +206 -0
- package/package.json +20 -0
- package/pipette/README.md +50 -0
- package/pipette/definitions/1/pipetteModelSpecs.json +10214 -0
- package/pipette/definitions/1/pipetteNameSpecs.json +679 -0
- package/pipette/definitions/2/general/eight_channel/p10/1_0.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p10/1_3.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p10/1_4.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p10/1_5.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p10/1_6.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p1000/1_0.json +68 -0
- package/pipette/definitions/2/general/eight_channel/p1000/3_0.json +68 -0
- package/pipette/definitions/2/general/eight_channel/p1000/3_3.json +68 -0
- package/pipette/definitions/2/general/eight_channel/p1000/3_4.json +68 -0
- package/pipette/definitions/2/general/eight_channel/p1000/3_5.json +68 -0
- package/pipette/definitions/2/general/eight_channel/p20/2_0.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p20/2_1.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p300/1_0.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p300/1_3.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p300/1_4.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p300/1_5.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p300/2_0.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p300/2_1.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p50/1_0.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p50/1_3.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p50/1_4.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p50/1_5.json +59 -0
- package/pipette/definitions/2/general/eight_channel/p50/3_0.json +74 -0
- package/pipette/definitions/2/general/eight_channel/p50/3_3.json +74 -0
- package/pipette/definitions/2/general/eight_channel/p50/3_4.json +74 -0
- package/pipette/definitions/2/general/eight_channel/p50/3_5.json +74 -0
- package/pipette/definitions/2/general/ninety_six_channel/p1000/1_0.json +87 -0
- package/pipette/definitions/2/general/ninety_six_channel/p1000/3_0.json +92 -0
- package/pipette/definitions/2/general/ninety_six_channel/p1000/3_3.json +87 -0
- package/pipette/definitions/2/general/ninety_six_channel/p1000/3_4.json +88 -0
- package/pipette/definitions/2/general/ninety_six_channel/p1000/3_5.json +87 -0
- package/pipette/definitions/2/general/single_channel/p10/1_0.json +52 -0
- package/pipette/definitions/2/general/single_channel/p10/1_3.json +52 -0
- package/pipette/definitions/2/general/single_channel/p10/1_4.json +52 -0
- package/pipette/definitions/2/general/single_channel/p10/1_5.json +52 -0
- package/pipette/definitions/2/general/single_channel/p1000/1_0.json +52 -0
- package/pipette/definitions/2/general/single_channel/p1000/1_3.json +52 -0
- package/pipette/definitions/2/general/single_channel/p1000/1_4.json +52 -0
- package/pipette/definitions/2/general/single_channel/p1000/1_5.json +52 -0
- package/pipette/definitions/2/general/single_channel/p1000/2_0.json +52 -0
- package/pipette/definitions/2/general/single_channel/p1000/2_1.json +52 -0
- package/pipette/definitions/2/general/single_channel/p1000/2_2.json +52 -0
- package/pipette/definitions/2/general/single_channel/p1000/3_0.json +61 -0
- package/pipette/definitions/2/general/single_channel/p1000/3_3.json +61 -0
- package/pipette/definitions/2/general/single_channel/p1000/3_4.json +61 -0
- package/pipette/definitions/2/general/single_channel/p1000/3_5.json +61 -0
- package/pipette/definitions/2/general/single_channel/p20/2_0.json +52 -0
- package/pipette/definitions/2/general/single_channel/p20/2_1.json +52 -0
- package/pipette/definitions/2/general/single_channel/p20/2_2.json +52 -0
- package/pipette/definitions/2/general/single_channel/p300/1_0.json +52 -0
- package/pipette/definitions/2/general/single_channel/p300/1_3.json +52 -0
- package/pipette/definitions/2/general/single_channel/p300/1_4.json +52 -0
- package/pipette/definitions/2/general/single_channel/p300/1_5.json +52 -0
- package/pipette/definitions/2/general/single_channel/p300/2_0.json +52 -0
- package/pipette/definitions/2/general/single_channel/p300/2_1.json +52 -0
- package/pipette/definitions/2/general/single_channel/p50/1_0.json +52 -0
- package/pipette/definitions/2/general/single_channel/p50/1_3.json +52 -0
- package/pipette/definitions/2/general/single_channel/p50/1_4.json +52 -0
- package/pipette/definitions/2/general/single_channel/p50/1_5.json +52 -0
- package/pipette/definitions/2/general/single_channel/p50/3_0.json +67 -0
- package/pipette/definitions/2/general/single_channel/p50/3_3.json +67 -0
- package/pipette/definitions/2/general/single_channel/p50/3_4.json +67 -0
- package/pipette/definitions/2/general/single_channel/p50/3_5.json +67 -0
- package/pipette/definitions/2/geometry/eight_channel/p10/1_0.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p10/1_3.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p10/1_4.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p10/1_5.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p10/1_6.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p10/placeholder.gltf +0 -0
- package/pipette/definitions/2/geometry/eight_channel/p1000/1_0.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p1000/3_0.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p1000/3_3.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p1000/3_4.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p1000/3_5.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p1000/placeholder.gltf +0 -0
- package/pipette/definitions/2/geometry/eight_channel/p20/2_0.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p20/2_1.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p20/placeholder.gltf +0 -0
- package/pipette/definitions/2/geometry/eight_channel/p300/1_0.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p300/1_3.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p300/1_4.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p300/1_5.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p300/2_0.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p300/2_1.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p300/placeholder.gltf +0 -0
- package/pipette/definitions/2/geometry/eight_channel/p50/1_0.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p50/1_3.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p50/1_4.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p50/1_5.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p50/3_0.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p50/3_3.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p50/3_4.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p50/3_5.json +37 -0
- package/pipette/definitions/2/geometry/eight_channel/p50/placeholder.gltf +0 -0
- package/pipette/definitions/2/geometry/ninety_six_channel/p1000/1_0.json +291 -0
- package/pipette/definitions/2/geometry/ninety_six_channel/p1000/3_0.json +291 -0
- package/pipette/definitions/2/geometry/ninety_six_channel/p1000/3_3.json +291 -0
- package/pipette/definitions/2/geometry/ninety_six_channel/p1000/3_4.json +291 -0
- package/pipette/definitions/2/geometry/ninety_six_channel/p1000/3_5.json +291 -0
- package/pipette/definitions/2/geometry/ninety_six_channel/p1000/placeholder.gltf +0 -0
- package/pipette/definitions/2/geometry/single_channel/p10/1_0.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p10/1_3.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p10/1_4.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p10/1_5.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p10/placeholder.gltf +0 -0
- package/pipette/definitions/2/geometry/single_channel/p1000/1_0.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p1000/1_3.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p1000/1_4.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p1000/1_5.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p1000/2_0.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p1000/2_1.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p1000/2_2.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p1000/3_0.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p1000/3_3.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p1000/3_4.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p1000/3_5.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p1000/placeholder.gltf +0 -0
- package/pipette/definitions/2/geometry/single_channel/p20/2_0.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p20/2_1.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p20/2_2.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p20/placeholder.gltf +0 -0
- package/pipette/definitions/2/geometry/single_channel/p300/1_0.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p300/1_3.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p300/1_4.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p300/1_5.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p300/2_0.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p300/2_1.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p300/placeholder.gltf +0 -0
- package/pipette/definitions/2/geometry/single_channel/p50/1_0.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p50/1_3.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p50/1_4.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p50/1_5.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p50/3_0.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p50/3_3.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p50/3_4.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p50/3_5.json +10 -0
- package/pipette/definitions/2/geometry/single_channel/p50/placeholder.gltf +0 -0
- package/pipette/definitions/2/liquid/eight_channel/p10/default/1_0.json +58 -0
- package/pipette/definitions/2/liquid/eight_channel/p10/default/1_3.json +58 -0
- package/pipette/definitions/2/liquid/eight_channel/p10/default/1_4.json +58 -0
- package/pipette/definitions/2/liquid/eight_channel/p10/default/1_5.json +47 -0
- package/pipette/definitions/2/liquid/eight_channel/p10/default/1_6.json +55 -0
- package/pipette/definitions/2/liquid/eight_channel/p1000/default/1_0.json +356 -0
- package/pipette/definitions/2/liquid/eight_channel/p1000/default/3_0.json +359 -0
- package/pipette/definitions/2/liquid/eight_channel/p1000/default/3_3.json +359 -0
- package/pipette/definitions/2/liquid/eight_channel/p1000/default/3_4.json +359 -0
- package/pipette/definitions/2/liquid/eight_channel/p1000/default/3_5.json +239 -0
- package/pipette/definitions/2/liquid/eight_channel/p20/default/2_0.json +311 -0
- package/pipette/definitions/2/liquid/eight_channel/p20/default/2_1.json +191 -0
- package/pipette/definitions/2/liquid/eight_channel/p300/default/1_0.json +67 -0
- package/pipette/definitions/2/liquid/eight_channel/p300/default/1_3.json +67 -0
- package/pipette/definitions/2/liquid/eight_channel/p300/default/1_4.json +67 -0
- package/pipette/definitions/2/liquid/eight_channel/p300/default/1_5.json +67 -0
- package/pipette/definitions/2/liquid/eight_channel/p300/default/2_0.json +190 -0
- package/pipette/definitions/2/liquid/eight_channel/p300/default/2_1.json +190 -0
- package/pipette/definitions/2/liquid/eight_channel/p50/default/1_0.json +128 -0
- package/pipette/definitions/2/liquid/eight_channel/p50/default/1_3.json +128 -0
- package/pipette/definitions/2/liquid/eight_channel/p50/default/1_4.json +128 -0
- package/pipette/definitions/2/liquid/eight_channel/p50/default/1_5.json +110 -0
- package/pipette/definitions/2/liquid/eight_channel/p50/default/3_0.json +99 -0
- package/pipette/definitions/2/liquid/eight_channel/p50/default/3_3.json +99 -0
- package/pipette/definitions/2/liquid/eight_channel/p50/default/3_4.json +99 -0
- package/pipette/definitions/2/liquid/eight_channel/p50/default/3_5.json +91 -0
- package/pipette/definitions/2/liquid/eight_channel/p50/lowVolumeDefault/3_0.json +94 -0
- package/pipette/definitions/2/liquid/eight_channel/p50/lowVolumeDefault/3_3.json +89 -0
- package/pipette/definitions/2/liquid/eight_channel/p50/lowVolumeDefault/3_4.json +89 -0
- package/pipette/definitions/2/liquid/eight_channel/p50/lowVolumeDefault/3_5.json +89 -0
- package/pipette/definitions/2/liquid/ninety_six_channel/p1000/default/1_0.json +188 -0
- package/pipette/definitions/2/liquid/ninety_six_channel/p1000/default/3_0.json +188 -0
- package/pipette/definitions/2/liquid/ninety_six_channel/p1000/default/3_3.json +188 -0
- package/pipette/definitions/2/liquid/ninety_six_channel/p1000/default/3_4.json +188 -0
- package/pipette/definitions/2/liquid/ninety_six_channel/p1000/default/3_5.json +188 -0
- package/pipette/definitions/2/liquid/single_channel/p10/default/1_0.json +59 -0
- package/pipette/definitions/2/liquid/single_channel/p10/default/1_3.json +59 -0
- package/pipette/definitions/2/liquid/single_channel/p10/default/1_4.json +56 -0
- package/pipette/definitions/2/liquid/single_channel/p10/default/1_5.json +54 -0
- package/pipette/definitions/2/liquid/single_channel/p1000/default/1_0.json +48 -0
- package/pipette/definitions/2/liquid/single_channel/p1000/default/1_3.json +48 -0
- package/pipette/definitions/2/liquid/single_channel/p1000/default/1_4.json +48 -0
- package/pipette/definitions/2/liquid/single_channel/p1000/default/1_5.json +48 -0
- package/pipette/definitions/2/liquid/single_channel/p1000/default/2_0.json +105 -0
- package/pipette/definitions/2/liquid/single_channel/p1000/default/2_1.json +107 -0
- package/pipette/definitions/2/liquid/single_channel/p1000/default/2_2.json +107 -0
- package/pipette/definitions/2/liquid/single_channel/p1000/default/3_0.json +356 -0
- package/pipette/definitions/2/liquid/single_channel/p1000/default/3_3.json +356 -0
- package/pipette/definitions/2/liquid/single_channel/p1000/default/3_4.json +282 -0
- package/pipette/definitions/2/liquid/single_channel/p1000/default/3_5.json +204 -0
- package/pipette/definitions/2/liquid/single_channel/p20/default/2_0.json +431 -0
- package/pipette/definitions/2/liquid/single_channel/p20/default/2_1.json +251 -0
- package/pipette/definitions/2/liquid/single_channel/p20/default/2_2.json +311 -0
- package/pipette/definitions/2/liquid/single_channel/p300/default/1_0.json +99 -0
- package/pipette/definitions/2/liquid/single_channel/p300/default/1_3.json +99 -0
- package/pipette/definitions/2/liquid/single_channel/p300/default/1_4.json +99 -0
- package/pipette/definitions/2/liquid/single_channel/p300/default/1_5.json +75 -0
- package/pipette/definitions/2/liquid/single_channel/p300/default/2_0.json +188 -0
- package/pipette/definitions/2/liquid/single_channel/p300/default/2_1.json +188 -0
- package/pipette/definitions/2/liquid/single_channel/p50/default/1_0.json +119 -0
- package/pipette/definitions/2/liquid/single_channel/p50/default/1_3.json +128 -0
- package/pipette/definitions/2/liquid/single_channel/p50/default/1_4.json +128 -0
- package/pipette/definitions/2/liquid/single_channel/p50/default/1_5.json +104 -0
- package/pipette/definitions/2/liquid/single_channel/p50/default/3_0.json +98 -0
- package/pipette/definitions/2/liquid/single_channel/p50/default/3_3.json +98 -0
- package/pipette/definitions/2/liquid/single_channel/p50/default/3_4.json +100 -0
- package/pipette/definitions/2/liquid/single_channel/p50/default/3_5.json +80 -0
- package/pipette/definitions/2/liquid/single_channel/p50/lowVolumeDefault/3_0.json +78 -0
- package/pipette/definitions/2/liquid/single_channel/p50/lowVolumeDefault/3_3.json +78 -0
- package/pipette/definitions/2/liquid/single_channel/p50/lowVolumeDefault/3_4.json +78 -0
- package/pipette/definitions/2/liquid/single_channel/p50/lowVolumeDefault/3_5.json +76 -0
- package/pipette/fixtures/name/index.ts +19 -0
- package/pipette/fixtures/name/pipetteNameSpecFixtures.json +130 -0
- package/pipette/schemas/1/pipetteModelSpecsSchema.json +155 -0
- package/pipette/schemas/1/pipetteNameSpecsSchema.json +91 -0
- package/pipette/schemas/2/pipetteGeometrySchema.json +81 -0
- package/pipette/schemas/2/pipetteLiquidPropertiesSchema.json +120 -0
- package/pipette/schemas/2/pipettePropertiesSchema.json +287 -0
- package/protocol/README.md +12 -0
- package/protocol/fixtures/1/simple.json +73 -0
- package/protocol/fixtures/3/simple.json +1307 -0
- package/protocol/fixtures/3/testAllAtomicSingleV3.json +2281 -0
- package/protocol/fixtures/3/testTrickyLabwareV3.json +2577 -0
- package/protocol/fixtures/3/unusedPipette.json +1311 -0
- package/protocol/fixtures/4/pipetteMultiChannelProtocolV4.json +2561 -0
- package/protocol/fixtures/4/simpleV4.json +1309 -0
- package/protocol/fixtures/4/testMagneticModuleV4.json +2156 -0
- package/protocol/fixtures/4/testModulesProtocol.json +2561 -0
- package/protocol/fixtures/4/testTemperatureModuleV4.json +1480 -0
- package/protocol/fixtures/4/testThermocyclerModuleV4.json +2182 -0
- package/protocol/fixtures/4/transferSettings.json +5482 -0
- package/protocol/fixtures/5/multipleTipracks.json +2476 -0
- package/protocol/fixtures/5/multipleTipracksWithTC.json +3544 -0
- package/protocol/fixtures/5/simpleV5.json +1328 -0
- package/protocol/fixtures/6/heaterShakerCommands.json +1422 -0
- package/protocol/fixtures/6/heaterShakerCommandsWithResultsKey.json +4725 -0
- package/protocol/fixtures/6/multipleTempModules.json +11060 -0
- package/protocol/fixtures/6/multipleTipracks.json +5020 -0
- package/protocol/fixtures/6/multipleTipracksWithTC.json +7057 -0
- package/protocol/fixtures/6/oneTiprack.json +1388 -0
- package/protocol/fixtures/6/simpleV6.json +1494 -0
- package/protocol/fixtures/6/tempAndMagModuleCommands.json +1413 -0
- package/protocol/fixtures/6/transferSettings.json +11060 -0
- package/protocol/fixtures/7/moveLabware.json +1303 -0
- package/protocol/fixtures/7/simpleV7.json +1496 -0
- package/protocol/fixtures/8/moveLabware8.json +1309 -0
- package/protocol/fixtures/8/moveLabwareFlex8.json +1309 -0
- package/protocol/fixtures/8/simpleFlexV8.json +1475 -0
- package/protocol/fixtures/8/simpleV8.json +1473 -0
- package/protocol/index.ts +32 -0
- package/protocol/schemas/1.json +389 -0
- package/protocol/schemas/2.json +416 -0
- package/protocol/schemas/3.json +360 -0
- package/protocol/schemas/4.json +662 -0
- package/protocol/schemas/5.json +701 -0
- package/protocol/schemas/6.json +1225 -0
- package/protocol/schemas/7.json +290 -0
- package/protocol/schemas/8.json +157 -0
- package/protocol/types/schemaV1.ts +108 -0
- package/protocol/types/schemaV3.ts +131 -0
- package/protocol/types/schemaV4.ts +146 -0
- package/protocol/types/schemaV5.ts +34 -0
- package/protocol/types/schemaV5Addendum.ts +27 -0
- package/protocol/types/schemaV6/command/gantry.ts +146 -0
- package/protocol/types/schemaV6/command/index.ts +65 -0
- package/protocol/types/schemaV6/command/module.ts +302 -0
- package/protocol/types/schemaV6/command/pipetting.ts +114 -0
- package/protocol/types/schemaV6/command/setup.ts +127 -0
- package/protocol/types/schemaV6/command/timing.ts +58 -0
- package/protocol/types/schemaV6/index.ts +122 -0
- package/protocol/types/schemaV7/command/annotation.ts +37 -0
- package/protocol/types/schemaV7/command/calibration.ts +84 -0
- package/protocol/types/schemaV7/command/gantry.ts +154 -0
- package/protocol/types/schemaV7/command/incidental.ts +21 -0
- package/protocol/types/schemaV7/command/index.ts +76 -0
- package/protocol/types/schemaV7/command/module.ts +307 -0
- package/protocol/types/schemaV7/command/pipetting.ts +173 -0
- package/protocol/types/schemaV7/command/setup.ts +158 -0
- package/protocol/types/schemaV7/command/timing.ts +58 -0
- package/protocol/types/schemaV7/index.ts +98 -0
- package/protocol/types/schemaV8/index.ts +160 -0
- package/python/.coveragerc +4 -0
- package/python/.flake8 +32 -0
- package/python/Config.in +10 -0
- package/python/Makefile +134 -0
- package/python/Pipfile +28 -0
- package/python/Pipfile.lock +645 -0
- package/python/buildroot.mk +30 -0
- package/python/mypy.ini +41 -0
- package/python/opentrons_shared_data/__init__.py +17 -0
- package/python/opentrons_shared_data/_version.py +20 -0
- package/python/opentrons_shared_data/command/__init__.py +52 -0
- package/python/opentrons_shared_data/deck/__init__.py +96 -0
- package/python/opentrons_shared_data/deck/dev_types.py +180 -0
- package/python/opentrons_shared_data/errors/__init__.py +30 -0
- package/python/opentrons_shared_data/errors/categories.py +60 -0
- package/python/opentrons_shared_data/errors/codes.py +108 -0
- package/python/opentrons_shared_data/errors/exceptions.py +915 -0
- package/python/opentrons_shared_data/gripper/__init__.py +63 -0
- package/python/opentrons_shared_data/gripper/constants.py +5 -0
- package/python/opentrons_shared_data/gripper/gripper_definition.py +101 -0
- package/python/opentrons_shared_data/labware/__init__.py +22 -0
- package/python/opentrons_shared_data/labware/constants.py +7 -0
- package/python/opentrons_shared_data/labware/dev_types.py +140 -0
- package/python/opentrons_shared_data/labware/labware_definition.py +328 -0
- package/python/opentrons_shared_data/load.py +57 -0
- package/python/opentrons_shared_data/module/__init__.py +74 -0
- package/python/opentrons_shared_data/module/dev_types.py +141 -0
- package/python/opentrons_shared_data/pipette/__init__.py +107 -0
- package/python/opentrons_shared_data/pipette/dev_types.py +177 -0
- package/python/opentrons_shared_data/pipette/file_operation_helpers.py +37 -0
- package/python/opentrons_shared_data/pipette/load_data.py +261 -0
- package/python/opentrons_shared_data/pipette/model_constants.py +123 -0
- package/python/opentrons_shared_data/pipette/mutable_configurations.py +431 -0
- package/python/opentrons_shared_data/pipette/pipette_definition.py +503 -0
- package/python/opentrons_shared_data/pipette/pipette_load_name_conversions.py +236 -0
- package/python/opentrons_shared_data/pipette/scripts/__init__.py +0 -0
- package/python/opentrons_shared_data/pipette/scripts/build_json_script.py +469 -0
- package/python/opentrons_shared_data/pipette/scripts/update_configuration_files.py +450 -0
- package/python/opentrons_shared_data/pipette/types.py +193 -0
- package/python/opentrons_shared_data/protocol/__init__.py +13 -0
- package/python/opentrons_shared_data/protocol/constants.py +98 -0
- package/python/opentrons_shared_data/protocol/dev_types.py +436 -0
- package/python/opentrons_shared_data/protocol/models/__init__.py +48 -0
- package/python/opentrons_shared_data/protocol/models/protocol_schema_v6.py +145 -0
- package/python/opentrons_shared_data/protocol/models/protocol_schema_v7.py +95 -0
- package/python/opentrons_shared_data/protocol/models/protocol_schema_v8.py +108 -0
- package/python/opentrons_shared_data/protocol/models/shared_models.py +105 -0
- package/python/opentrons_shared_data/py.typed +0 -0
- package/python/opentrons_shared_data/robot/__init__.py +25 -0
- package/python/opentrons_shared_data/robot/dev_types.py +37 -0
- package/python/pytest.ini +2 -0
- package/python/setup.cfg +5 -0
- package/python/setup.py +179 -0
- package/python/tests/__init__.py +1 -0
- package/python/tests/conftest.py +0 -0
- package/python/tests/deck/__init__.py +0 -0
- package/python/tests/deck/test_list_names.py +12 -0
- package/python/tests/deck/test_position.py +113 -0
- package/python/tests/deck/test_typechecks.py +28 -0
- package/python/tests/errors/__init__.py +1 -0
- package/python/tests/errors/test_error_completeness.py +19 -0
- package/python/tests/errors/test_exceptions.py +74 -0
- package/python/tests/gripper/__init__.py +0 -0
- package/python/tests/gripper/test_definition.py +30 -0
- package/python/tests/gripper/test_load.py +16 -0
- package/python/tests/labware/__init__.py +13 -0
- package/python/tests/labware/test_typechecks.py +21 -0
- package/python/tests/module/__init__.py +20 -0
- package/python/tests/module/test_load.py +49 -0
- package/python/tests/module/test_typechecks.py +34 -0
- package/python/tests/pipette/__init__.py +0 -0
- package/python/tests/pipette/test_load_data.py +103 -0
- package/python/tests/pipette/test_mutable_configurations.py +266 -0
- package/python/tests/pipette/test_pipette_definition.py +183 -0
- package/python/tests/pipette/test_pipette_load_name_conversions.py +222 -0
- package/python/tests/pipette/test_typechecks.py +50 -0
- package/python/tests/pipette/test_validate_schema.py +37 -0
- package/python/tests/protocol/__init__.py +15 -0
- package/python/tests/protocol/test_protocol_schema_v6.py +107 -0
- package/python/tests/protocol/test_protocol_schema_v7.py +34 -0
- package/python/tests/protocol/test_protocol_schema_v8.py +20 -0
- package/python/tests/protocol/test_typechecks.py +36 -0
- package/python/tests/robot/__init__.py +0 -0
- package/python/tests/robot/test_typechecks.py +20 -0
- package/robot/definitions/1/ot2.json +5 -0
- package/robot/definitions/1/ot3.json +5 -0
- package/robot/schemas/1.json +30 -0
- package/tsconfig-data.json +24 -0
- package/tsconfig.json +17 -0
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
import re
|
|
2
|
+
from typing import List, Dict, Tuple, Optional
|
|
3
|
+
from pydantic import BaseModel, Field, validator
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
from dataclasses import dataclass
|
|
6
|
+
|
|
7
|
+
from . import types as pip_types, dev_types
|
|
8
|
+
|
|
9
|
+
PLUNGER_CURRENT_MINIMUM = 0.1
|
|
10
|
+
PLUNGER_CURRENT_MAXIMUM = 1.5
|
|
11
|
+
|
|
12
|
+
NOZZLE_MAP_NAMES = re.compile(r"(?P<row>[A-Z]+)(?P<column>[0-9]+)")
|
|
13
|
+
COLUMN_NAMES = re.compile(r"[0-9]+")
|
|
14
|
+
ROW_NAMES = re.compile(r"[A-Z]+")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# TODO (lc 12-5-2022) Ideally we can deprecate this
|
|
18
|
+
# at somepoint once we load pipettes by channels and type
|
|
19
|
+
@dataclass
|
|
20
|
+
class PipetteNameType:
|
|
21
|
+
pipette_type: pip_types.PipetteModelType
|
|
22
|
+
pipette_channels: pip_types.PipetteChannelType
|
|
23
|
+
pipette_generation: pip_types.PipetteGenerationType
|
|
24
|
+
|
|
25
|
+
def __repr__(self) -> str:
|
|
26
|
+
base_name = f"{self.pipette_type.name}_{str(self.pipette_channels)}"
|
|
27
|
+
if self.pipette_generation == pip_types.PipetteGenerationType.GEN1:
|
|
28
|
+
return base_name
|
|
29
|
+
elif self.pipette_channels == pip_types.PipetteChannelType.NINETY_SIX_CHANNEL:
|
|
30
|
+
return base_name
|
|
31
|
+
else:
|
|
32
|
+
return f"{base_name}_{self.pipette_generation.name.lower()}"
|
|
33
|
+
|
|
34
|
+
def get_version(self) -> pip_types.PipetteVersionType:
|
|
35
|
+
if self.pipette_generation == pip_types.PipetteGenerationType.FLEX:
|
|
36
|
+
return pip_types.PipetteVersionType(3, 0)
|
|
37
|
+
elif self.pipette_generation == pip_types.PipetteGenerationType.GEN2:
|
|
38
|
+
return pip_types.PipetteVersionType(2, 0)
|
|
39
|
+
else:
|
|
40
|
+
return pip_types.PipetteVersionType(1, 0)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@dataclass
|
|
44
|
+
class PipetteModelVersionType:
|
|
45
|
+
pipette_type: pip_types.PipetteModelType
|
|
46
|
+
pipette_channels: pip_types.PipetteChannelType
|
|
47
|
+
pipette_version: pip_types.PipetteVersionType
|
|
48
|
+
|
|
49
|
+
def __repr__(self) -> str:
|
|
50
|
+
base_name = f"{self.pipette_type.name}_{str(self.pipette_channels)}"
|
|
51
|
+
|
|
52
|
+
return f"{base_name}_v{self.pipette_version}"
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class FlowRateDefinition(BaseModel):
|
|
56
|
+
default: float = Field(..., description="Highest API level default fallback.")
|
|
57
|
+
values_by_api_level: Dict[str, float] = Field(
|
|
58
|
+
..., description="flow rates keyed by API level.", alias="valuesByApiLevel"
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
PipetteFunctionKeyType = Literal["1", "2", "3"]
|
|
63
|
+
ulPerMMType = Dict[PipetteFunctionKeyType, List[Tuple[float, float, float]]]
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class ulPerMMDefinition(BaseModel):
|
|
67
|
+
default: ulPerMMType
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class SupportedTipsDefinition(BaseModel):
|
|
71
|
+
"""Tip parameters available for every tip size."""
|
|
72
|
+
|
|
73
|
+
default_aspirate_flowrate: FlowRateDefinition = Field(
|
|
74
|
+
...,
|
|
75
|
+
description="The flowrate used in aspirations by default.",
|
|
76
|
+
alias="defaultAspirateFlowRate",
|
|
77
|
+
)
|
|
78
|
+
default_dispense_flowrate: FlowRateDefinition = Field(
|
|
79
|
+
...,
|
|
80
|
+
description="The flowrate used in dispenses by default.",
|
|
81
|
+
alias="defaultDispenseFlowRate",
|
|
82
|
+
)
|
|
83
|
+
default_blowout_flowrate: FlowRateDefinition = Field(
|
|
84
|
+
...,
|
|
85
|
+
description="The flowrate used in blowouts by default.",
|
|
86
|
+
alias="defaultBlowOutFlowRate",
|
|
87
|
+
)
|
|
88
|
+
default_flow_acceleration: float = Field(
|
|
89
|
+
float("inf"), # no default works for all pipettes
|
|
90
|
+
description="The acceleration used during aspirate/dispense/blowout in ul/s^2.",
|
|
91
|
+
alias="defaultFlowAcceleration",
|
|
92
|
+
)
|
|
93
|
+
default_tip_length: float = Field(
|
|
94
|
+
...,
|
|
95
|
+
description="The default tip length associated with this tip type.",
|
|
96
|
+
alias="defaultTipLength",
|
|
97
|
+
)
|
|
98
|
+
default_return_tip_height: float = Field(
|
|
99
|
+
default=0.5,
|
|
100
|
+
description="The height to return a tip to its tiprack.",
|
|
101
|
+
alias="defaultReturnTipHeight",
|
|
102
|
+
)
|
|
103
|
+
aspirate: ulPerMMDefinition = Field(
|
|
104
|
+
..., description="The default pipetting functions list for aspirate."
|
|
105
|
+
)
|
|
106
|
+
dispense: ulPerMMDefinition = Field(
|
|
107
|
+
..., description="The default pipetting functions list for dispensing."
|
|
108
|
+
)
|
|
109
|
+
default_push_out_volume: float = Field(
|
|
110
|
+
...,
|
|
111
|
+
description="The default volume for a push-out during dispense.",
|
|
112
|
+
alias="defaultPushOutVolume",
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class MotorConfigurations(BaseModel):
|
|
117
|
+
idle: float = Field(
|
|
118
|
+
..., description="The plunger motor current to use during idle states."
|
|
119
|
+
)
|
|
120
|
+
run: float = Field(
|
|
121
|
+
..., description="The plunger motor current to use during active states."
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class PlungerPositions(BaseModel):
|
|
126
|
+
top: float = Field(
|
|
127
|
+
...,
|
|
128
|
+
description="The plunger position that describes max available volume of a pipette in mm.",
|
|
129
|
+
)
|
|
130
|
+
bottom: float = Field(
|
|
131
|
+
...,
|
|
132
|
+
description="The plunger position that describes min available volume of a pipette in mm.",
|
|
133
|
+
)
|
|
134
|
+
blow_out: float = Field(
|
|
135
|
+
...,
|
|
136
|
+
description="The plunger position past 0 volume to blow out liquid.",
|
|
137
|
+
alias="blowout",
|
|
138
|
+
)
|
|
139
|
+
drop_tip: float = Field(
|
|
140
|
+
..., description="The plunger position used to drop tips.", alias="drop"
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
class PlungerHomingConfigurations(BaseModel):
|
|
145
|
+
current: float = Field(
|
|
146
|
+
default=0.0,
|
|
147
|
+
description="The current to move the plunger axis for homing.",
|
|
148
|
+
)
|
|
149
|
+
speed: float = Field(
|
|
150
|
+
...,
|
|
151
|
+
description="The speed to move the plunger axis for homing.",
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
class PressFitPickUpTipConfiguration(BaseModel):
|
|
156
|
+
presses: int = Field(
|
|
157
|
+
...,
|
|
158
|
+
description="The number of times to force pickup (incrementally more each time by increment)",
|
|
159
|
+
)
|
|
160
|
+
increment: float = Field(
|
|
161
|
+
...,
|
|
162
|
+
description="The increment to move the pipette down on each force tip pickup press",
|
|
163
|
+
)
|
|
164
|
+
distance: float = Field(
|
|
165
|
+
..., description="The starting distance to begin a pick up tip from"
|
|
166
|
+
)
|
|
167
|
+
speed: float = Field(
|
|
168
|
+
..., description="The speed to move the Z axis for each force pickup"
|
|
169
|
+
)
|
|
170
|
+
current_by_tip_count: Dict[int, float] = Field(
|
|
171
|
+
...,
|
|
172
|
+
description="A current dictionary look-up by partial tip configuration.",
|
|
173
|
+
alias="currentByTipCount",
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
class CamActionPickUpTipConfiguration(BaseModel):
|
|
178
|
+
distance: float = Field(..., description="How far to move the cams once engaged")
|
|
179
|
+
speed: float = Field(..., description="How fast to move the cams when engaged")
|
|
180
|
+
prep_move_distance: float = Field(
|
|
181
|
+
..., description="How far to move the cams to engage the rack"
|
|
182
|
+
)
|
|
183
|
+
prep_move_speed: float = Field(
|
|
184
|
+
..., description="How fast to move the cams when moving to the rack"
|
|
185
|
+
)
|
|
186
|
+
current_by_tip_count: Dict[int, float] = Field(
|
|
187
|
+
...,
|
|
188
|
+
description="A current dictionary look-up by partial tip configuration.",
|
|
189
|
+
alias="currentByTipCount",
|
|
190
|
+
)
|
|
191
|
+
connect_tiprack_distance_mm: float = Field(
|
|
192
|
+
description="The distance to move the head down to connect with the tiprack before clamping.",
|
|
193
|
+
alias="connectTiprackDistanceMM",
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
class PlungerEjectDropTipConfiguration(BaseModel):
|
|
198
|
+
current: float = Field(
|
|
199
|
+
..., description="The current to use on the plunger motor when dropping a tip"
|
|
200
|
+
)
|
|
201
|
+
speed: float = Field(
|
|
202
|
+
..., description="How fast to move the plunger motor when dropping a tip"
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
class CamActionDropTipConfiguration(BaseModel):
|
|
207
|
+
current: float = Field(
|
|
208
|
+
..., description="The current to use on the cam motors when dropping tips"
|
|
209
|
+
)
|
|
210
|
+
distance: float = Field(
|
|
211
|
+
..., description="The distance to move the cams when dropping tips"
|
|
212
|
+
)
|
|
213
|
+
speed: float = Field(
|
|
214
|
+
..., description="How fast to move the cams when dropping tips"
|
|
215
|
+
)
|
|
216
|
+
prep_move_distance: float = Field(
|
|
217
|
+
..., description="How far to move the cams after disengaging"
|
|
218
|
+
)
|
|
219
|
+
prep_move_speed: float = Field(
|
|
220
|
+
..., description="How fast to move the cams after disengaging"
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
class DropTipConfigurations(BaseModel):
|
|
225
|
+
plunger_eject: Optional[PlungerEjectDropTipConfiguration] = Field(
|
|
226
|
+
description="Configuration for tip drop via plunger eject", alias="plungerEject"
|
|
227
|
+
)
|
|
228
|
+
cam_action: Optional[CamActionDropTipConfiguration] = Field(
|
|
229
|
+
description="Configuration for tip drop via cam action", alias="camAction"
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
class PickUpTipConfigurations(BaseModel):
|
|
234
|
+
press_fit: PressFitPickUpTipConfiguration = Field(
|
|
235
|
+
description="Configuration for tip pickup via press fit", alias="pressFit"
|
|
236
|
+
)
|
|
237
|
+
cam_action: Optional[CamActionPickUpTipConfiguration] = Field(
|
|
238
|
+
default=None,
|
|
239
|
+
description="Configuration for tip pickup via cam action",
|
|
240
|
+
alias="camAction",
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
class AvailableSensorDefinition(BaseModel):
|
|
245
|
+
"""The number and type of sensors available in the pipette."""
|
|
246
|
+
|
|
247
|
+
sensors: List[str] = Field(..., description="")
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
class PartialTipDefinition(BaseModel):
|
|
251
|
+
partial_tip_supported: bool = Field(
|
|
252
|
+
...,
|
|
253
|
+
description="Whether partial tip pick up is supported.",
|
|
254
|
+
alias="partialTipSupported",
|
|
255
|
+
)
|
|
256
|
+
available_configurations: List[int] = Field(
|
|
257
|
+
default=None,
|
|
258
|
+
description="A list of the types of partial tip configurations supported, listed by channel ints",
|
|
259
|
+
alias="availableConfigurations",
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
class PipettePhysicalPropertiesDefinition(BaseModel):
|
|
264
|
+
"""The physical properties definition of a pipette."""
|
|
265
|
+
|
|
266
|
+
display_name: str = Field(
|
|
267
|
+
...,
|
|
268
|
+
description="The display or full product name of the pipette.",
|
|
269
|
+
alias="displayName",
|
|
270
|
+
)
|
|
271
|
+
pipette_backcompat_names: List[dev_types.PipetteName] = Field(
|
|
272
|
+
...,
|
|
273
|
+
description="A list of pipette names that are compatible with this pipette.",
|
|
274
|
+
alias="backCompatNames",
|
|
275
|
+
)
|
|
276
|
+
pipette_type: pip_types.PipetteModelType = Field(
|
|
277
|
+
...,
|
|
278
|
+
description="The pipette model type (related to number of channels).",
|
|
279
|
+
alias="model",
|
|
280
|
+
)
|
|
281
|
+
display_category: pip_types.PipetteGenerationType = Field(
|
|
282
|
+
..., description="The product model of the pipette.", alias="displayCategory"
|
|
283
|
+
)
|
|
284
|
+
pick_up_tip_configurations: PickUpTipConfigurations = Field(
|
|
285
|
+
..., alias="pickUpTipConfigurations"
|
|
286
|
+
)
|
|
287
|
+
drop_tip_configurations: DropTipConfigurations = Field(
|
|
288
|
+
..., alias="dropTipConfigurations"
|
|
289
|
+
)
|
|
290
|
+
plunger_homing_configurations: PlungerHomingConfigurations = Field(
|
|
291
|
+
..., alias="plungerHomingConfigurations"
|
|
292
|
+
)
|
|
293
|
+
plunger_motor_configurations: MotorConfigurations = Field(
|
|
294
|
+
..., alias="plungerMotorConfigurations"
|
|
295
|
+
)
|
|
296
|
+
plunger_positions_configurations: Dict[
|
|
297
|
+
pip_types.LiquidClasses, PlungerPositions
|
|
298
|
+
] = Field(..., alias="plungerPositionsConfigurations")
|
|
299
|
+
available_sensors: AvailableSensorDefinition = Field(..., alias="availableSensors")
|
|
300
|
+
partial_tip_configurations: PartialTipDefinition = Field(
|
|
301
|
+
..., alias="partialTipConfigurations"
|
|
302
|
+
)
|
|
303
|
+
channels: pip_types.PipetteChannelType = Field(
|
|
304
|
+
..., description="The maximum number of channels on the pipette."
|
|
305
|
+
)
|
|
306
|
+
shaft_diameter: float = Field(
|
|
307
|
+
..., description="The diameter of the pipette shaft.", alias="shaftDiameter"
|
|
308
|
+
)
|
|
309
|
+
shaft_ul_per_mm: float = Field(
|
|
310
|
+
...,
|
|
311
|
+
description="The conversion rate between uL dispensed and mm of motor movement.",
|
|
312
|
+
alias="shaftULperMM",
|
|
313
|
+
)
|
|
314
|
+
backlash_distance: float = Field(
|
|
315
|
+
...,
|
|
316
|
+
description="The distance of backlash on the plunger motor.",
|
|
317
|
+
alias="backlashDistance",
|
|
318
|
+
)
|
|
319
|
+
quirks: List[pip_types.Quirks] = Field(
|
|
320
|
+
..., description="The list of quirks available for the loaded configuration"
|
|
321
|
+
)
|
|
322
|
+
tip_presence_check_distance_mm: float = Field(
|
|
323
|
+
default=0,
|
|
324
|
+
description="The distance the high throughput tip motors will travel to check tip status.",
|
|
325
|
+
alias="tipPresenceCheckDistanceMM",
|
|
326
|
+
)
|
|
327
|
+
|
|
328
|
+
end_tip_action_retract_distance_mm: float = Field(
|
|
329
|
+
default=0.0,
|
|
330
|
+
description="The distance to move the head up after a tip drop or pickup.",
|
|
331
|
+
alias="endTipActionRetractDistanceMM",
|
|
332
|
+
)
|
|
333
|
+
|
|
334
|
+
@validator("pipette_type", pre=True)
|
|
335
|
+
def convert_pipette_model_string(cls, v: str) -> pip_types.PipetteModelType:
|
|
336
|
+
return pip_types.PipetteModelType(v)
|
|
337
|
+
|
|
338
|
+
@validator("channels", pre=True)
|
|
339
|
+
def convert_channels(cls, v: int) -> pip_types.PipetteChannelType:
|
|
340
|
+
return pip_types.PipetteChannelType(v)
|
|
341
|
+
|
|
342
|
+
@validator("display_category", pre=True)
|
|
343
|
+
def convert_display_category(cls, v: str) -> pip_types.PipetteGenerationType:
|
|
344
|
+
if not v:
|
|
345
|
+
return pip_types.PipetteGenerationType.GEN1
|
|
346
|
+
return pip_types.PipetteGenerationType(v)
|
|
347
|
+
|
|
348
|
+
@validator("quirks", pre=True)
|
|
349
|
+
def convert_quirks(cls, v: List[str]) -> List[pip_types.Quirks]:
|
|
350
|
+
return [pip_types.Quirks(q) for q in v]
|
|
351
|
+
|
|
352
|
+
@validator("plunger_positions_configurations", pre=True)
|
|
353
|
+
def convert_plunger_positions(
|
|
354
|
+
cls, v: Dict[str, PlungerPositions]
|
|
355
|
+
) -> Dict[pip_types.LiquidClasses, PlungerPositions]:
|
|
356
|
+
return {pip_types.LiquidClasses[key]: value for key, value in v.items()}
|
|
357
|
+
|
|
358
|
+
class Config:
|
|
359
|
+
json_encoders = {
|
|
360
|
+
pip_types.PipetteChannelType: lambda v: v.value,
|
|
361
|
+
pip_types.PipetteModelType: lambda v: v.value,
|
|
362
|
+
pip_types.PipetteGenerationType: lambda v: v.value,
|
|
363
|
+
pip_types.Quirks: lambda v: v.value,
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
class PipetteRowDefinition(BaseModel):
|
|
368
|
+
key: str
|
|
369
|
+
ordered_nozzles: List[str] = Field(..., alias="orderedNozzles")
|
|
370
|
+
|
|
371
|
+
@validator("key")
|
|
372
|
+
def check_key_is_row(cls, v: str) -> str:
|
|
373
|
+
if not ROW_NAMES.search(v):
|
|
374
|
+
raise ValueError(f"{v} is not a valid row name")
|
|
375
|
+
return v
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
class PipetteColumnDefinition(BaseModel):
|
|
379
|
+
key: str
|
|
380
|
+
ordered_nozzles: List[str] = Field(..., alias="orderedNozzles")
|
|
381
|
+
|
|
382
|
+
@validator("key")
|
|
383
|
+
def check_key_is_column(cls, v: str) -> str:
|
|
384
|
+
if not COLUMN_NAMES.search(v):
|
|
385
|
+
raise ValueError(f"{v} is not a valid column name")
|
|
386
|
+
return v
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
class PipetteGeometryDefinition(BaseModel):
|
|
390
|
+
"""The geometry properties definition of a pipette."""
|
|
391
|
+
|
|
392
|
+
nozzle_offset: List[float] = Field(..., alias="nozzleOffset")
|
|
393
|
+
path_to_3D: str = Field(
|
|
394
|
+
...,
|
|
395
|
+
description="The shared data relative path to the 3D representation of the pipette model.",
|
|
396
|
+
alias="pathTo3D",
|
|
397
|
+
)
|
|
398
|
+
nozzle_map: Dict[str, List[float]] = Field(..., alias="nozzleMap")
|
|
399
|
+
ordered_columns: List[PipetteColumnDefinition] = Field(..., alias="orderedColumns")
|
|
400
|
+
ordered_rows: List[PipetteRowDefinition] = Field(..., alias="orderedRows")
|
|
401
|
+
|
|
402
|
+
@validator("nozzle_map", pre=True)
|
|
403
|
+
def check_nonempty_strings(
|
|
404
|
+
cls, v: Dict[str, List[float]]
|
|
405
|
+
) -> Dict[str, List[float]]:
|
|
406
|
+
# Note, the key should be able to be a regex but I think
|
|
407
|
+
# we're not on a pydantic version that supports that.
|
|
408
|
+
for k in v.keys():
|
|
409
|
+
if not NOZZLE_MAP_NAMES.match(k):
|
|
410
|
+
raise ValueError("{k} is not a valid key entry for nozzle map.")
|
|
411
|
+
return v
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
class PipetteLiquidPropertiesDefinition(BaseModel):
|
|
415
|
+
"""The liquid properties definition of a pipette."""
|
|
416
|
+
|
|
417
|
+
supported_tips: Dict[pip_types.PipetteTipType, SupportedTipsDefinition] = Field(
|
|
418
|
+
..., alias="supportedTips"
|
|
419
|
+
)
|
|
420
|
+
tip_overlap_dictionary: Dict[str, float] = Field(
|
|
421
|
+
...,
|
|
422
|
+
description="The default tip overlap associated with this tip type.",
|
|
423
|
+
alias="defaultTipOverlapDictionary",
|
|
424
|
+
)
|
|
425
|
+
max_volume: int = Field(
|
|
426
|
+
...,
|
|
427
|
+
description="The maximum supported volume of the pipette.",
|
|
428
|
+
alias="maxVolume",
|
|
429
|
+
)
|
|
430
|
+
min_volume: float = Field(
|
|
431
|
+
...,
|
|
432
|
+
description="The minimum supported volume of the pipette.",
|
|
433
|
+
alias="minVolume",
|
|
434
|
+
)
|
|
435
|
+
default_tipracks: List[str] = Field(
|
|
436
|
+
...,
|
|
437
|
+
description="A list of default tiprack paths.",
|
|
438
|
+
regex="opentrons/[a-z0-9._]+/[0-9]",
|
|
439
|
+
alias="defaultTipracks",
|
|
440
|
+
)
|
|
441
|
+
|
|
442
|
+
@validator("supported_tips", pre=True)
|
|
443
|
+
def convert_aspirate_key_to_channel_type(
|
|
444
|
+
cls, v: Dict[str, SupportedTipsDefinition]
|
|
445
|
+
) -> Dict[pip_types.PipetteTipType, SupportedTipsDefinition]:
|
|
446
|
+
return {pip_types.PipetteTipType[key]: value for key, value in v.items()}
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
class PipetteConfigurations(
|
|
450
|
+
PipetteGeometryDefinition,
|
|
451
|
+
PipettePhysicalPropertiesDefinition,
|
|
452
|
+
):
|
|
453
|
+
"""The full pipette configurations of a given model and version."""
|
|
454
|
+
|
|
455
|
+
version: pip_types.PipetteVersionType = Field(
|
|
456
|
+
..., description="The version of the configuration loaded."
|
|
457
|
+
)
|
|
458
|
+
mount_configurations: pip_types.RobotMountConfigs = Field(
|
|
459
|
+
...,
|
|
460
|
+
)
|
|
461
|
+
liquid_properties: Dict[
|
|
462
|
+
pip_types.LiquidClasses, PipetteLiquidPropertiesDefinition
|
|
463
|
+
] = Field(
|
|
464
|
+
..., description="A dictionary of liquid properties keyed by liquid classes."
|
|
465
|
+
)
|
|
466
|
+
|
|
467
|
+
@validator("liquid_properties", pre=True)
|
|
468
|
+
def convert_liquid_properties_key(
|
|
469
|
+
cls, v: Dict[str, PipetteLiquidPropertiesDefinition]
|
|
470
|
+
) -> Dict[pip_types.LiquidClasses, PipetteLiquidPropertiesDefinition]:
|
|
471
|
+
return {pip_types.LiquidClasses[key]: value for key, value in v.items()}
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
def liquid_class_for_volume_between_default_and_defaultlowvolume(
|
|
475
|
+
volume: float,
|
|
476
|
+
current_liquid_class_name: pip_types.LiquidClasses,
|
|
477
|
+
available_liquid_classes: Dict[
|
|
478
|
+
pip_types.LiquidClasses, PipetteLiquidPropertiesDefinition
|
|
479
|
+
],
|
|
480
|
+
) -> pip_types.LiquidClasses:
|
|
481
|
+
"""Determine the appropriate liquid class to use for a volume.
|
|
482
|
+
|
|
483
|
+
This function has such a weird name because it is hardcoded to only use the liquid
|
|
484
|
+
classes default and defaultLowVolume. It should no longer be used when those liquid
|
|
485
|
+
classes change.
|
|
486
|
+
"""
|
|
487
|
+
# For now, until we add more liquid classes, we're going to hardcode the default
|
|
488
|
+
# and lowVolumeDefault liquid classes as the ones to switch between.
|
|
489
|
+
has_lvd = pip_types.LiquidClasses.lowVolumeDefault in available_liquid_classes
|
|
490
|
+
|
|
491
|
+
if not has_lvd:
|
|
492
|
+
return pip_types.LiquidClasses.default
|
|
493
|
+
if volume >= available_liquid_classes[pip_types.LiquidClasses.default].min_volume:
|
|
494
|
+
return pip_types.LiquidClasses.default
|
|
495
|
+
return pip_types.LiquidClasses.lowVolumeDefault
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
def default_tip_for_liquid_class(
|
|
499
|
+
liquid_class_config: PipetteLiquidPropertiesDefinition,
|
|
500
|
+
) -> pip_types.PipetteTipType:
|
|
501
|
+
"""Provide a "default tip", the one with the largest volume."""
|
|
502
|
+
tip_names = liquid_class_config.supported_tips.keys()
|
|
503
|
+
return sorted(tip_names, key=lambda tip: tip.value)[-1]
|