@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,86 @@
|
|
|
1
|
+
import range from 'lodash/range'
|
|
2
|
+
import { get96Channel384WellPlateWells } from './get96Channel384WellPlateWells'
|
|
3
|
+
import { getLabwareHasQuirk, orderWells, sortWells } from './index'
|
|
4
|
+
import type { LabwareDefinition2 } from '../types'
|
|
5
|
+
|
|
6
|
+
// TODO Ian 2018-03-13 pull pipette offsets/positions from some pipette definitions data
|
|
7
|
+
const OFFSET_8_CHANNEL = 9 // offset in mm between tips
|
|
8
|
+
|
|
9
|
+
const MULTICHANNEL_TIP_SPAN = OFFSET_8_CHANNEL * (8 - 1) // length in mm from first to last tip of multichannel
|
|
10
|
+
|
|
11
|
+
export function findWellAt(
|
|
12
|
+
labwareDef: LabwareDefinition2,
|
|
13
|
+
x: number,
|
|
14
|
+
y: number
|
|
15
|
+
): string | null | undefined {
|
|
16
|
+
return Object.keys(labwareDef.wells)
|
|
17
|
+
.sort(sortWells)
|
|
18
|
+
.find((wellName: string) => {
|
|
19
|
+
const well = labwareDef.wells[wellName]
|
|
20
|
+
|
|
21
|
+
if (well.shape === 'circular') {
|
|
22
|
+
return (
|
|
23
|
+
Math.sqrt(Math.pow(x - well.x, 2) + Math.pow(y - well.y, 2)) <
|
|
24
|
+
well.diameter / 2
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Not circular, must be a rectangular well
|
|
29
|
+
// For rectangular wells, (x, y) is at the center.
|
|
30
|
+
return (
|
|
31
|
+
Math.abs(x - well.x) < well.xDimension / 2 &&
|
|
32
|
+
Math.abs(y - well.y) < well.yDimension / 2
|
|
33
|
+
)
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// "topWellName" means well at the "top" of the column we're accessing: usually A row, or B row for 384-format
|
|
38
|
+
export function getWellNamePerMultiTip(
|
|
39
|
+
labwareDef: LabwareDefinition2,
|
|
40
|
+
topWellName: string,
|
|
41
|
+
channels: 8 | 96
|
|
42
|
+
): string[] | null {
|
|
43
|
+
const topWell = labwareDef.wells[topWellName]
|
|
44
|
+
if (!topWell) {
|
|
45
|
+
console.warn(
|
|
46
|
+
`well "${topWellName}" does not exist in labware ${labwareDef?.namespace}/${labwareDef?.parameters?.loadName}, cannot getWellNamePerMultiTip`
|
|
47
|
+
)
|
|
48
|
+
return null
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const { x, y } = topWell
|
|
52
|
+
let offsetYTipPositions: number[] = range(0, 8).map(
|
|
53
|
+
tipNo => y - tipNo * OFFSET_8_CHANNEL
|
|
54
|
+
)
|
|
55
|
+
const orderedWells = orderWells(labwareDef.ordering, 't2b', 'l2r')
|
|
56
|
+
|
|
57
|
+
if (getLabwareHasQuirk(labwareDef, 'centerMultichannelOnWells')) {
|
|
58
|
+
// move multichannel up in Y by half the pipette's tip span to center it in the well
|
|
59
|
+
offsetYTipPositions = offsetYTipPositions.map(
|
|
60
|
+
tipPosY => tipPosY + MULTICHANNEL_TIP_SPAN / 2
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
// Return null for containers with any undefined wells
|
|
64
|
+
const wellsAccessed = offsetYTipPositions.reduce(
|
|
65
|
+
(acc: string[] | null, tipPosY) => {
|
|
66
|
+
const wellForTip = findWellAt(labwareDef, x, tipPosY)
|
|
67
|
+
if (acc === null || !wellForTip) {
|
|
68
|
+
return null
|
|
69
|
+
}
|
|
70
|
+
return acc.concat(wellForTip)
|
|
71
|
+
},
|
|
72
|
+
[]
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
let ninetySixChannelWells = orderedWells
|
|
76
|
+
// special casing 384 well plates to be every other well
|
|
77
|
+
// both on the x and y ases.
|
|
78
|
+
if (orderedWells.length === 384) {
|
|
79
|
+
ninetySixChannelWells = get96Channel384WellPlateWells(
|
|
80
|
+
orderedWells,
|
|
81
|
+
topWellName
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return channels === 8 ? wellsAccessed : ninetySixChannelWells
|
|
86
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { LabwareDefinition2 } from '../types'
|
|
2
|
+
export const getWellTotalVolume = (
|
|
3
|
+
labwareDef: LabwareDefinition2,
|
|
4
|
+
wellName: string
|
|
5
|
+
): number | null | undefined => {
|
|
6
|
+
const well = labwareDef.wells[wellName]
|
|
7
|
+
|
|
8
|
+
if (!well) {
|
|
9
|
+
console.warn(
|
|
10
|
+
`No well "${wellName}" found for labware ${labwareDef?.namespace}/${labwareDef?.parameters?.loadName}/${labwareDef?.version}"`
|
|
11
|
+
)
|
|
12
|
+
return null
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return well.totalLiquidVolume
|
|
16
|
+
}
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import assert from 'assert'
|
|
2
|
+
import uniq from 'lodash/uniq'
|
|
3
|
+
|
|
4
|
+
import { OPENTRONS_LABWARE_NAMESPACE } from '../constants'
|
|
5
|
+
import standardOt2DeckDef from '../../deck/definitions/4/ot2_standard.json'
|
|
6
|
+
import standardFlexDeckDef from '../../deck/definitions/4/ot3_standard.json'
|
|
7
|
+
import type {
|
|
8
|
+
DeckDefinition,
|
|
9
|
+
LabwareDefinition2,
|
|
10
|
+
ModuleModel,
|
|
11
|
+
RobotType,
|
|
12
|
+
ThermalAdapterName,
|
|
13
|
+
} from '../types'
|
|
14
|
+
|
|
15
|
+
export { getWellNamePerMultiTip } from './getWellNamePerMultiTip'
|
|
16
|
+
export { getWellTotalVolume } from './getWellTotalVolume'
|
|
17
|
+
export { wellIsRect } from './wellIsRect'
|
|
18
|
+
export { orderWells } from './orderWells'
|
|
19
|
+
export { get96Channel384WellPlateWells } from './get96Channel384WellPlateWells'
|
|
20
|
+
|
|
21
|
+
export * from './parseProtocolData'
|
|
22
|
+
export * from './volume'
|
|
23
|
+
export * from './wellSets'
|
|
24
|
+
export * from './getModuleVizDims'
|
|
25
|
+
export * from './getVectorDifference'
|
|
26
|
+
export * from './getVectorSum'
|
|
27
|
+
export * from './getLoadedLabwareDefinitionsByUri'
|
|
28
|
+
export * from './getOccludedSlotCountForModule'
|
|
29
|
+
export * from './labwareInference'
|
|
30
|
+
|
|
31
|
+
export const getLabwareDefIsStandard = (def: LabwareDefinition2): boolean =>
|
|
32
|
+
def?.namespace === OPENTRONS_LABWARE_NAMESPACE
|
|
33
|
+
|
|
34
|
+
export const getLabwareDefURI = (def: LabwareDefinition2): string =>
|
|
35
|
+
constructLabwareDefURI(
|
|
36
|
+
def.namespace,
|
|
37
|
+
def.parameters.loadName,
|
|
38
|
+
String(def.version)
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
export const constructLabwareDefURI = (
|
|
42
|
+
namespace: string,
|
|
43
|
+
loadName: string,
|
|
44
|
+
version: string
|
|
45
|
+
): string => `${namespace}/${loadName}/${version}`
|
|
46
|
+
|
|
47
|
+
// Load names of "retired" labware
|
|
48
|
+
// TODO(mc, 2019-12-3): how should this correspond to LABWAREV2_DO_NOT_LIST?
|
|
49
|
+
// see shared-data/js/getLabware.js
|
|
50
|
+
const RETIRED_LABWARE = [
|
|
51
|
+
'geb_96_tiprack_10ul',
|
|
52
|
+
'geb_96_tiprack_1000ul',
|
|
53
|
+
'opentrons_1_trash_850ml_fixed',
|
|
54
|
+
'opentrons_10_tuberack_falcon_4x50ml_6x15ml_conical_acrylic',
|
|
55
|
+
'opentrons_24_tuberack_eppendorf_2ml_safelock_snapcap_acrylic',
|
|
56
|
+
'opentrons_24_tuberack_generic_0.75ml_snapcap_acrylic',
|
|
57
|
+
'opentrons_40_aluminumblock_eppendorf_24x2ml_safelock_snapcap_generic_16x0.2ml_pcr_strip',
|
|
58
|
+
'opentrons_96_aluminumblock_biorad_wellplate_200ul',
|
|
59
|
+
'tipone_96_tiprack_200ul',
|
|
60
|
+
'eppendorf_96_tiprack_1000ul_eptips',
|
|
61
|
+
'eppendorf_96_tiprack_10ul_eptips',
|
|
62
|
+
// Replaced by opentrons_96_wellplate_200ul_pcr_full_skirt
|
|
63
|
+
// https://opentrons.atlassian.net/browse/RLAB-230
|
|
64
|
+
'armadillo_96_wellplate_200ul_pcr_full_skirt',
|
|
65
|
+
]
|
|
66
|
+
|
|
67
|
+
export const getLabwareDisplayName = (
|
|
68
|
+
labwareDef: LabwareDefinition2
|
|
69
|
+
): string => {
|
|
70
|
+
const { displayName } = labwareDef.metadata
|
|
71
|
+
|
|
72
|
+
if (
|
|
73
|
+
getLabwareDefIsStandard(labwareDef) &&
|
|
74
|
+
RETIRED_LABWARE.includes(labwareDef.parameters.loadName)
|
|
75
|
+
) {
|
|
76
|
+
return `(Retired) ${displayName}`
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return displayName
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const getTiprackVolume = (labwareDef: LabwareDefinition2): number => {
|
|
83
|
+
assert(
|
|
84
|
+
labwareDef.parameters.isTiprack,
|
|
85
|
+
`getTiprackVolume expected a tiprack labware ${getLabwareDefURI(
|
|
86
|
+
labwareDef
|
|
87
|
+
)}, but 'isTiprack' isn't true`
|
|
88
|
+
)
|
|
89
|
+
// NOTE: Ian 2019-04-16 assuming all tips are the same volume across the rack
|
|
90
|
+
const volume = labwareDef.wells.A1.totalLiquidVolume
|
|
91
|
+
assert(
|
|
92
|
+
volume >= 0,
|
|
93
|
+
`getTiprackVolume expected tip volume to be at least 0, got ${volume}`
|
|
94
|
+
)
|
|
95
|
+
return volume
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function getLabwareHasQuirk(
|
|
99
|
+
labwareDef: LabwareDefinition2,
|
|
100
|
+
quirk: string
|
|
101
|
+
): boolean {
|
|
102
|
+
const quirks = labwareDef.parameters.quirks
|
|
103
|
+
return quirks ? quirks.includes(quirk) : false
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export const intToAlphabetLetter = (
|
|
107
|
+
i: number,
|
|
108
|
+
lowerCase: boolean = false
|
|
109
|
+
): string => String.fromCharCode((lowerCase ? 96 : 65) + i)
|
|
110
|
+
// These utils are great candidates for unit tests
|
|
111
|
+
export const toWellName = ({
|
|
112
|
+
rowNum,
|
|
113
|
+
colNum,
|
|
114
|
+
}: {
|
|
115
|
+
rowNum: number
|
|
116
|
+
colNum: number
|
|
117
|
+
}): string => String.fromCharCode(rowNum + 65) + (colNum + 1)
|
|
118
|
+
|
|
119
|
+
function _parseWell(well: string): [string, number] {
|
|
120
|
+
const res = well.match(/([A-Z]+)(\d+)/)
|
|
121
|
+
const letters = res && res[1]
|
|
122
|
+
const number = res && parseInt(res[2])
|
|
123
|
+
|
|
124
|
+
if (!letters || number == null || Number.isNaN(number)) {
|
|
125
|
+
console.warn(
|
|
126
|
+
`Could not parse well ${well}. Got letters: "${
|
|
127
|
+
letters || 'void'
|
|
128
|
+
}", number: "${number || 'void'}"`
|
|
129
|
+
)
|
|
130
|
+
return ['', NaN]
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return [letters, number]
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** A compareFunction for sorting an array of well names
|
|
137
|
+
* Goes down the columns (A1 to H1 on 96 plate)
|
|
138
|
+
* Then L to R across rows (1 to 12 on 96 plate)
|
|
139
|
+
*/
|
|
140
|
+
export function sortWells(a: string, b: string): number {
|
|
141
|
+
const [letterA, numberA] = _parseWell(a)
|
|
142
|
+
|
|
143
|
+
const [letterB, numberB] = _parseWell(b)
|
|
144
|
+
|
|
145
|
+
if (numberA !== numberB) {
|
|
146
|
+
return numberA > numberB ? 1 : -1
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (letterA.length !== letterB.length) {
|
|
150
|
+
// Eg 'B' vs 'AA'
|
|
151
|
+
return letterA.length > letterB.length ? 1 : -1
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return letterA > letterB ? 1 : -1
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function splitWellsOnColumn(sortedArray: string[]): string[][] {
|
|
158
|
+
return sortedArray.reduce<string[][]>((acc, curr) => {
|
|
159
|
+
const lastColumn = acc.slice(-1)
|
|
160
|
+
|
|
161
|
+
if (lastColumn === undefined || lastColumn.length === 0) {
|
|
162
|
+
return [[curr]]
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
const lastEle = lastColumn[0].slice(-1)[0].slice(1)
|
|
166
|
+
|
|
167
|
+
if (Number(curr.slice(1)) > Number(lastEle)) {
|
|
168
|
+
return [...acc, [curr]]
|
|
169
|
+
} else {
|
|
170
|
+
return [...acc.slice(0, -1), [...lastColumn[0], curr]]
|
|
171
|
+
}
|
|
172
|
+
}, [])
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export const getWellDepth = (
|
|
176
|
+
labwareDef: LabwareDefinition2,
|
|
177
|
+
well: string
|
|
178
|
+
): number => labwareDef.wells[well].depth
|
|
179
|
+
|
|
180
|
+
// NOTE: this is used in PD for converting "offset from top" to "mm from bottom".
|
|
181
|
+
// Assumes all wells have same offset because multi-offset not yet supported.
|
|
182
|
+
// TODO: Ian 2019-07-13 return {[string: well]: offset} to support multi-offset
|
|
183
|
+
export const getWellsDepth = (
|
|
184
|
+
labwareDef: LabwareDefinition2,
|
|
185
|
+
wells: string[]
|
|
186
|
+
): number => {
|
|
187
|
+
const offsets = wells.map(well => getWellDepth(labwareDef, well))
|
|
188
|
+
|
|
189
|
+
if (uniq(offsets).length !== 1) {
|
|
190
|
+
console.warn(
|
|
191
|
+
`expected wells ${JSON.stringify(
|
|
192
|
+
wells
|
|
193
|
+
)} to all have same offset, but they were different. Labware def is ${getLabwareDefURI(
|
|
194
|
+
labwareDef
|
|
195
|
+
)}`
|
|
196
|
+
)
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return offsets[0]
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export const getSlotHasMatingSurfaceUnitVector = (
|
|
203
|
+
deckDef: DeckDefinition,
|
|
204
|
+
addressableAreaName: string
|
|
205
|
+
): boolean => {
|
|
206
|
+
const matingSurfaceUnitVector = deckDef.locations.addressableAreas.find(
|
|
207
|
+
aa => aa.id === addressableAreaName
|
|
208
|
+
)?.matingSurfaceUnitVector
|
|
209
|
+
|
|
210
|
+
return Boolean(matingSurfaceUnitVector)
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export const getAreSlotsHorizontallyAdjacent = (
|
|
214
|
+
slotNameA?: string | null,
|
|
215
|
+
slotNameB?: string | null
|
|
216
|
+
): boolean => {
|
|
217
|
+
if (slotNameA == null || slotNameB == null) {
|
|
218
|
+
return false
|
|
219
|
+
}
|
|
220
|
+
const slotANumber = parseInt(slotNameA)
|
|
221
|
+
const slotBNumber = parseInt(slotNameB)
|
|
222
|
+
if (isNaN(slotBNumber) || isNaN(slotANumber)) {
|
|
223
|
+
return false
|
|
224
|
+
}
|
|
225
|
+
const orderedSlots = standardOt2DeckDef.locations.cutouts
|
|
226
|
+
// intentionally not substracting by 1 because trash (slot 12) should not count
|
|
227
|
+
const numSlots = orderedSlots.length
|
|
228
|
+
if (slotBNumber > numSlots || slotANumber > numSlots) {
|
|
229
|
+
return false
|
|
230
|
+
}
|
|
231
|
+
const slotWidth = orderedSlots[1].position[0] - orderedSlots[0].position[0]
|
|
232
|
+
const slotAPosition = orderedSlots[slotANumber - 1].position
|
|
233
|
+
const slotBPosition = orderedSlots[slotBNumber - 1].position
|
|
234
|
+
|
|
235
|
+
const yPositionSlotA = slotAPosition[1]
|
|
236
|
+
const yPositionSlotB = slotBPosition[1]
|
|
237
|
+
|
|
238
|
+
const xPositionSlotA = slotAPosition[0]
|
|
239
|
+
const xPositionSlotB = slotBPosition[0]
|
|
240
|
+
|
|
241
|
+
const areSlotsHorizontallyAdjacent =
|
|
242
|
+
yPositionSlotA === yPositionSlotB &&
|
|
243
|
+
Math.abs(xPositionSlotA - xPositionSlotB) === slotWidth
|
|
244
|
+
|
|
245
|
+
return areSlotsHorizontallyAdjacent
|
|
246
|
+
}
|
|
247
|
+
export const getAreSlotsVerticallyAdjacent = (
|
|
248
|
+
slotNameA?: string | null,
|
|
249
|
+
slotNameB?: string | null
|
|
250
|
+
): boolean => {
|
|
251
|
+
if (slotNameA == null || slotNameB == null) {
|
|
252
|
+
return false
|
|
253
|
+
}
|
|
254
|
+
const slotANumber = parseInt(slotNameA)
|
|
255
|
+
const slotBNumber = parseInt(slotNameB)
|
|
256
|
+
|
|
257
|
+
if (isNaN(slotBNumber) || isNaN(slotANumber)) {
|
|
258
|
+
return false
|
|
259
|
+
}
|
|
260
|
+
const orderedSlots = standardOt2DeckDef.locations.cutouts
|
|
261
|
+
// intentionally not substracting by 1 because trash (slot 12) should not count
|
|
262
|
+
const numSlots = orderedSlots.length
|
|
263
|
+
|
|
264
|
+
if (slotBNumber > numSlots || slotANumber > numSlots) {
|
|
265
|
+
return false
|
|
266
|
+
}
|
|
267
|
+
// take the y coord of slot 4, and subtact from y coord of slot 1
|
|
268
|
+
const slotHeight = orderedSlots[3].position[1] - orderedSlots[0].position[1]
|
|
269
|
+
const slotAPosition = orderedSlots[slotANumber - 1].position
|
|
270
|
+
const slotBPosition = orderedSlots[slotBNumber - 1].position
|
|
271
|
+
|
|
272
|
+
const yPositionSlotA = slotAPosition[1]
|
|
273
|
+
const yPositionSlotB = slotBPosition[1]
|
|
274
|
+
|
|
275
|
+
const xPositionSlotA = slotAPosition[0]
|
|
276
|
+
const xPositionSlotB = slotBPosition[0]
|
|
277
|
+
|
|
278
|
+
const areSlotsVerticallyAdjacent =
|
|
279
|
+
xPositionSlotA === xPositionSlotB &&
|
|
280
|
+
Math.abs(yPositionSlotA - yPositionSlotB) === slotHeight
|
|
281
|
+
|
|
282
|
+
return areSlotsVerticallyAdjacent
|
|
283
|
+
}
|
|
284
|
+
// TODO(jr, 11/12/23): rename this utility to mention that it
|
|
285
|
+
// is only used in the OT-2, same with getAreSlotsHorizontallyAdjacent
|
|
286
|
+
// and getAreSlotsVerticallyAdjacent
|
|
287
|
+
export const getAreSlotsAdjacent = (
|
|
288
|
+
slotNameA?: string | null,
|
|
289
|
+
slotNameB?: string | null
|
|
290
|
+
): boolean =>
|
|
291
|
+
getAreSlotsHorizontallyAdjacent(slotNameA, slotNameB) ||
|
|
292
|
+
getAreSlotsVerticallyAdjacent(slotNameA, slotNameB)
|
|
293
|
+
|
|
294
|
+
export const getIsLabwareAboveHeight = (
|
|
295
|
+
labwareDef: LabwareDefinition2,
|
|
296
|
+
height: number
|
|
297
|
+
): boolean => labwareDef.dimensions.zDimension > height
|
|
298
|
+
|
|
299
|
+
export const getAdapterName = (labwareLoadname: string): ThermalAdapterName => {
|
|
300
|
+
let adapterName: ThermalAdapterName = 'Universal Flat Adapter'
|
|
301
|
+
|
|
302
|
+
if (
|
|
303
|
+
labwareLoadname ===
|
|
304
|
+
'opentrons_96_pcr_adapter_nest_wellplate_100ul_pcr_full_skirt'
|
|
305
|
+
) {
|
|
306
|
+
adapterName = 'PCR Adapter'
|
|
307
|
+
} else if (
|
|
308
|
+
labwareLoadname === 'opentrons_96_deep_well_adapter_nest_wellplate_2ml_deep'
|
|
309
|
+
) {
|
|
310
|
+
adapterName = 'Deep Well Adapter'
|
|
311
|
+
} else if (
|
|
312
|
+
labwareLoadname ===
|
|
313
|
+
'opentrons_96_flat_bottom_adapter_nest_wellplate_200ul_flat'
|
|
314
|
+
) {
|
|
315
|
+
adapterName = '96 Flat Bottom Adapter'
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
return adapterName
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export const getCalibrationAdapterLoadName = (
|
|
322
|
+
moduleModel: ModuleModel
|
|
323
|
+
): string | null => {
|
|
324
|
+
switch (moduleModel) {
|
|
325
|
+
case 'heaterShakerModuleV1':
|
|
326
|
+
return 'opentrons_calibration_adapter_heatershaker_module'
|
|
327
|
+
case 'temperatureModuleV2':
|
|
328
|
+
return 'opentrons_calibration_adapter_temperature_module'
|
|
329
|
+
case 'thermocyclerModuleV2':
|
|
330
|
+
return 'opentrons_calibration_adapter_thermocycler_module'
|
|
331
|
+
default:
|
|
332
|
+
console.error(
|
|
333
|
+
`${moduleModel} does not have an associated calibration adapter`
|
|
334
|
+
)
|
|
335
|
+
return null
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export const getDeckDefFromRobotType = (
|
|
340
|
+
robotType: RobotType
|
|
341
|
+
): DeckDefinition => {
|
|
342
|
+
// @ts-expect-error imported JSON not playing nice with TS. see https://github.com/microsoft/TypeScript/issues/32063
|
|
343
|
+
return robotType === 'OT-3 Standard'
|
|
344
|
+
? standardFlexDeckDef
|
|
345
|
+
: standardOt2DeckDef
|
|
346
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import isEqual from 'lodash/isEqual'
|
|
2
|
+
import uniqWith from 'lodash/uniqWith'
|
|
3
|
+
import round from 'lodash/round'
|
|
4
|
+
import sortedUniq from 'lodash/sortedUniq'
|
|
5
|
+
import uniq from 'lodash/uniq'
|
|
6
|
+
import type {
|
|
7
|
+
LabwareWell,
|
|
8
|
+
LabwareWellShapeProperties,
|
|
9
|
+
LabwareDefinition2,
|
|
10
|
+
LabwareWellGroupMetadata,
|
|
11
|
+
LabwareBrand,
|
|
12
|
+
} from '../types'
|
|
13
|
+
|
|
14
|
+
export interface LabwareWellGroupProperties {
|
|
15
|
+
xOffsetFromLeft: number
|
|
16
|
+
yOffsetFromTop: number
|
|
17
|
+
xSpacing: number | null
|
|
18
|
+
ySpacing: number | null
|
|
19
|
+
wellCount: number
|
|
20
|
+
shape: LabwareWellShapeProperties | null
|
|
21
|
+
depth: number | null
|
|
22
|
+
totalLiquidVolume: number | null
|
|
23
|
+
metadata: LabwareWellGroupMetadata
|
|
24
|
+
brand: LabwareBrand | null
|
|
25
|
+
}
|
|
26
|
+
const ROUNDING_PRECISION = 2
|
|
27
|
+
|
|
28
|
+
export function getUniqueWellProperties(
|
|
29
|
+
definition: LabwareDefinition2
|
|
30
|
+
): LabwareWellGroupProperties[] {
|
|
31
|
+
const { groups, wells, dimensions } = definition
|
|
32
|
+
|
|
33
|
+
return groups.map(group => {
|
|
34
|
+
const wellProps = group.wells.map(n => wells[n])
|
|
35
|
+
|
|
36
|
+
const wellDepths = wellProps.map<number>(w => w.depth)
|
|
37
|
+
const wellVolumes = wellProps.map<number>(w => w.totalLiquidVolume)
|
|
38
|
+
const wellShapes = wellProps.map<LabwareWellShapeProperties>(
|
|
39
|
+
(well: LabwareWell) =>
|
|
40
|
+
well.shape === 'circular'
|
|
41
|
+
? { shape: well.shape, diameter: well.diameter }
|
|
42
|
+
: {
|
|
43
|
+
shape: well.shape,
|
|
44
|
+
xDimension: well.xDimension,
|
|
45
|
+
yDimension: well.yDimension,
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
const xStart = wellProps[0]?.x ?? 0
|
|
50
|
+
const yStart = wellProps[0]?.y ?? 0
|
|
51
|
+
|
|
52
|
+
return {
|
|
53
|
+
metadata: group.metadata,
|
|
54
|
+
brand: group.brand || null,
|
|
55
|
+
xSpacing: getSpacingIfUniform(wellProps, 'x'),
|
|
56
|
+
ySpacing: getSpacingIfUniform(wellProps, 'y'),
|
|
57
|
+
xOffsetFromLeft: xStart,
|
|
58
|
+
yOffsetFromTop: round(dimensions.yDimension - yStart, ROUNDING_PRECISION),
|
|
59
|
+
wellCount: wellProps.length,
|
|
60
|
+
depth: getIfConsistent(wellDepths),
|
|
61
|
+
totalLiquidVolume: getIfConsistent(wellVolumes),
|
|
62
|
+
shape: getIfConsistent(wellShapes),
|
|
63
|
+
}
|
|
64
|
+
})
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function getIfConsistent<T>(items: T[]): T | null {
|
|
68
|
+
return uniqWith(items, isEqual).length === 1 ? items[0] : null
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// returning null means "spacing is irregular"; returning 0 means "there is only 1 well along the given axis"
|
|
72
|
+
export function getSpacingIfUniform(
|
|
73
|
+
wells: LabwareWell[],
|
|
74
|
+
axis: 'x' | 'y'
|
|
75
|
+
): number | null {
|
|
76
|
+
const wellPositions = sortedUniq(uniq(wells.map(well => well[axis])))
|
|
77
|
+
if (wellPositions.length < 2) return 0
|
|
78
|
+
|
|
79
|
+
const initialSpacing = round(
|
|
80
|
+
wellPositions[1] - wellPositions[0],
|
|
81
|
+
ROUNDING_PRECISION
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
for (let i = 2; i < wellPositions.length; i++) {
|
|
85
|
+
const pos = wellPositions[i]
|
|
86
|
+
const prevWellPos = wellPositions[i - 1]
|
|
87
|
+
const spacing = round(pos - prevWellPos, ROUNDING_PRECISION)
|
|
88
|
+
if (spacing !== initialSpacing) return null
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return Math.abs(initialSpacing)
|
|
92
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import zipWith from 'lodash/zipWith'
|
|
2
|
+
import uniq from 'lodash/uniq'
|
|
3
|
+
import compact from 'lodash/compact'
|
|
4
|
+
import flatten from 'lodash/flatten'
|
|
5
|
+
|
|
6
|
+
export type WellOrderOption = 'l2r' | 'r2l' | 't2b' | 'b2t'
|
|
7
|
+
|
|
8
|
+
// labware definitions in shared-data have an ordering
|
|
9
|
+
// attribute which is an Array of Arrays of wells. Each inner
|
|
10
|
+
// Array represents a physical column of wells on the labware
|
|
11
|
+
// this function takes that 2d Array of columns and returns
|
|
12
|
+
// the same wells in a 2d Array where each inner Array represents
|
|
13
|
+
// a physical row of wells on the labware.
|
|
14
|
+
// e.g.
|
|
15
|
+
// [ \ [
|
|
16
|
+
// ['A1', 'B1'], === \ ['A1', 'A2']
|
|
17
|
+
// ['A2', 'B2'] === / ['B1', 'B2']
|
|
18
|
+
// ] / ]
|
|
19
|
+
//
|
|
20
|
+
const _orderingColsToRows = (ordering: string[][]): string[][] =>
|
|
21
|
+
zipWith(...ordering, (...col) => compact(uniq(col)))
|
|
22
|
+
|
|
23
|
+
// given a default "ordering" 2d array from labware definitions
|
|
24
|
+
// where each inner array represents a physical column of wells
|
|
25
|
+
// and well order option selections (e.g. 'l2r', 'r2l', 't2b', 'b2t')
|
|
26
|
+
// this function returns a 1d array of wells from the labware
|
|
27
|
+
// ordered by the given traversal technique
|
|
28
|
+
export const orderWells = (
|
|
29
|
+
defaultOrdering: string[][],
|
|
30
|
+
first: WellOrderOption,
|
|
31
|
+
second: WellOrderOption
|
|
32
|
+
): string[] => {
|
|
33
|
+
let orderedWells: string[][] = []
|
|
34
|
+
|
|
35
|
+
if (first === 't2b') {
|
|
36
|
+
if (second === 'l2r') {
|
|
37
|
+
orderedWells = defaultOrdering
|
|
38
|
+
} else if (second === 'r2l') {
|
|
39
|
+
orderedWells = defaultOrdering.slice().reverse()
|
|
40
|
+
}
|
|
41
|
+
} else if (first === 'b2t') {
|
|
42
|
+
if (second === 'l2r') {
|
|
43
|
+
orderedWells = defaultOrdering.map(col => col.slice().reverse())
|
|
44
|
+
} else if (second === 'r2l') {
|
|
45
|
+
orderedWells = defaultOrdering
|
|
46
|
+
.slice()
|
|
47
|
+
.reverse()
|
|
48
|
+
.map(col => col.slice().reverse())
|
|
49
|
+
}
|
|
50
|
+
} else if (first === 'l2r') {
|
|
51
|
+
if (second === 't2b') {
|
|
52
|
+
orderedWells = _orderingColsToRows(defaultOrdering)
|
|
53
|
+
} else if (second === 'b2t') {
|
|
54
|
+
orderedWells = _orderingColsToRows(defaultOrdering).slice().reverse()
|
|
55
|
+
}
|
|
56
|
+
} else if (first === 'r2l') {
|
|
57
|
+
if (second === 't2b') {
|
|
58
|
+
orderedWells = _orderingColsToRows(defaultOrdering).map(col =>
|
|
59
|
+
col.slice().reverse()
|
|
60
|
+
)
|
|
61
|
+
} else if (second === 'b2t') {
|
|
62
|
+
orderedWells = _orderingColsToRows(defaultOrdering)
|
|
63
|
+
.slice()
|
|
64
|
+
.reverse()
|
|
65
|
+
.map(col => col.slice().reverse())
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return flatten(orderedWells)
|
|
69
|
+
}
|