@opentrons/shared-data 0.1.1 → 0.1.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gripper/definitions/1/gripperV1.1.json +1 -1
- package/gripper/definitions/1/gripperV1.2.json +1 -1
- 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 +38 -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 +405 -0
- package/js/cypressUtils.ts +35 -0
- package/js/errors.ts +33 -0
- package/js/fixtures.ts +156 -0
- package/js/getLabware.ts +145 -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__/getSimplestFlexDeckConfig.test.ts +176 -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/getAddressableAreasInProtocol.ts +98 -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/getSimplestFlexDeckConfig.ts +183 -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 +348 -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 +155 -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/generateDeckLayersFromSVG.js +46 -0
- package/js/titleCase.ts +30 -0
- package/js/types.ts +561 -0
- package/lib/command/schemas/7.json +3301 -0
- package/lib/command/schemas/8.json +3902 -0
- package/lib/command/types/annotation.d.ts +24 -0
- package/lib/command/types/calibration.d.ts +58 -0
- package/lib/command/types/gantry.d.ts +134 -0
- package/lib/command/types/incidental.d.ts +15 -0
- package/lib/command/types/index.d.ts +41 -0
- package/lib/command/types/module.d.ts +191 -0
- package/lib/command/types/pipetting.d.ts +195 -0
- package/lib/command/types/setup.d.ts +133 -0
- package/lib/command/types/timing.d.ts +39 -0
- package/lib/commandAnnotation/schemas/1.json +74 -0
- package/lib/commandAnnotation/types/index.d.ts +19 -0
- package/lib/deck/definitions/3/ot2_short_trash.json +477 -0
- package/lib/deck/definitions/3/ot2_standard.json +477 -0
- package/lib/deck/definitions/3/ot3_standard.json +989 -0
- package/lib/deck/definitions/4/ot2_short_trash.json +405 -0
- package/lib/deck/definitions/4/ot2_standard.json +405 -0
- package/lib/deck/definitions/4/ot3_standard.json +609 -0
- package/lib/deck/fixtures/3/deckExample.json +481 -0
- package/lib/deck/index.d.ts +1 -0
- package/lib/deck/schemas/1.json +229 -0
- package/lib/deck/schemas/2.json +239 -0
- package/lib/deck/schemas/3.json +296 -0
- package/lib/deck/schemas/4.json +319 -0
- package/lib/deck/types/schemaV4.d.ts +12 -0
- package/lib/errors/definitions/1/errors.json +226 -0
- package/lib/errors/schemas/1.json +49 -0
- package/lib/gripper/definitions/1/gripperV1.1.json +29 -0
- package/lib/gripper/definitions/1/gripperV1.2.json +29 -0
- package/lib/gripper/definitions/1/gripperV1.json +28 -0
- package/lib/gripper/schemas/1.json +186 -0
- package/lib/js/__tests__/deckSchemas.test.d.ts +1 -0
- package/lib/js/__tests__/getAreSlotsAdjacent.test.d.ts +1 -0
- package/lib/js/__tests__/getWellNamePerMultiTip.test.d.ts +1 -0
- package/lib/js/__tests__/labwareDefQuirks.test.d.ts +1 -0
- package/lib/js/__tests__/labwareDefSchemaV1.test.d.ts +1 -0
- package/lib/js/__tests__/labwareDefSchemaV2.test.d.ts +1 -0
- package/lib/js/__tests__/moduleAccessors.test.d.ts +1 -0
- package/lib/js/__tests__/moduleSpecsSchema.test.d.ts +1 -0
- package/lib/js/__tests__/pipetteSchemaV2.test.d.ts +1 -0
- package/lib/js/__tests__/pipetteSpecSchemas.test.d.ts +1 -0
- package/lib/js/__tests__/pipettes.test.d.ts +1 -0
- package/lib/js/__tests__/protocolSchemaV4.test.d.ts +1 -0
- package/lib/js/__tests__/protocolSchemaV5.test.d.ts +1 -0
- package/lib/js/__tests__/protocolSchemaV6.test.d.ts +1 -0
- package/lib/js/__tests__/protocolSchemaV7.test.d.ts +1 -0
- package/lib/js/__tests__/protocolValidation.test.d.ts +1 -0
- package/lib/js/__tests__/sortWells.test.d.ts +1 -0
- package/lib/js/__tests__/splitWellsOnColumn.test.d.ts +1 -0
- package/lib/js/constants.d.ts +156 -0
- package/lib/js/cypressUtils.d.ts +1 -0
- package/lib/js/errors.d.ts +13 -0
- package/lib/js/fixtures.d.ts +13 -0
- package/lib/js/getLabware.d.ts +8 -0
- package/lib/js/gripper.d.ts +3 -0
- package/lib/js/helpers/__tests__/getAdapterName.test.d.ts +1 -0
- package/lib/js/helpers/__tests__/getDeckDefFromLoadedLabware.test.d.ts +1 -0
- package/lib/js/helpers/__tests__/getSimplestFlexDeckConfig.test.d.ts +1 -0
- package/lib/js/helpers/__tests__/getVectorDifference.test.d.ts +1 -0
- package/lib/js/helpers/__tests__/getVectorSum.test.d.ts +1 -0
- package/lib/js/helpers/__tests__/labwareInference.test.d.ts +1 -0
- package/lib/js/helpers/__tests__/orderWells.test.d.ts +1 -0
- package/lib/js/helpers/__tests__/parseProtocolData.test.d.ts +1 -0
- package/lib/js/helpers/__tests__/volume.test.d.ts +1 -0
- package/lib/js/helpers/__tests__/wellSets.test.d.ts +1 -0
- package/lib/js/helpers/get96Channel384WellPlateWells.d.ts +1 -0
- package/lib/js/helpers/getAddressableAreasInProtocol.d.ts +4 -0
- package/lib/js/helpers/getLoadedLabwareDefinitionsByUri.d.ts +5 -0
- package/lib/js/helpers/getModuleVizDims.d.ts +16 -0
- package/lib/js/helpers/getOccludedSlotCountForModule.d.ts +2 -0
- package/lib/js/helpers/getSimplestFlexDeckConfig.d.ts +14 -0
- package/lib/js/helpers/getVectorDifference.d.ts +2 -0
- package/lib/js/helpers/getVectorSum.d.ts +2 -0
- package/lib/js/helpers/getWellNamePerMultiTip.d.ts +3 -0
- package/lib/js/helpers/getWellTotalVolume.d.ts +2 -0
- package/lib/js/helpers/index.d.ts +44 -0
- package/lib/js/helpers/labwareInference.d.ts +16 -0
- package/lib/js/helpers/orderWells.d.ts +2 -0
- package/lib/js/helpers/parseProtocolData.d.ts +23 -0
- package/lib/js/helpers/volume.d.ts +4 -0
- package/lib/js/helpers/wellIsRect.d.ts +3 -0
- package/lib/js/helpers/wellSets.d.ts +9 -0
- package/lib/js/index.d.ts +14 -0
- package/lib/js/labwareTools/__tests__/createDefaultDisplayName.test.d.ts +1 -0
- package/lib/js/labwareTools/__tests__/createIrregularLabware.test.d.ts +1 -0
- package/lib/js/labwareTools/__tests__/createLabware.test.d.ts +1 -0
- package/lib/js/labwareTools/index.d.ts +65 -0
- package/lib/js/modules.d.ts +6 -0
- package/lib/js/pipettes.d.ts +13 -0
- package/lib/js/protocols.d.ts +3 -0
- package/lib/js/schema.d.ts +90 -0
- package/lib/js/titleCase.d.ts +1 -0
- package/lib/js/types.d.ts +398 -0
- package/lib/labware/definitions/1/12-well-plate.json +147 -0
- package/lib/labware/definitions/1/24-vial-rack.json +281 -0
- package/lib/labware/definitions/1/24-well-plate.json +281 -0
- package/lib/labware/definitions/1/384-plate.json +4667 -0
- package/lib/labware/definitions/1/48-vial-plate.json +547 -0
- package/lib/labware/definitions/1/48-well-plate.json +547 -0
- package/lib/labware/definitions/1/5ml-3x4.json +147 -0
- package/lib/labware/definitions/1/6-well-plate.json +80 -0
- package/lib/labware/definitions/1/96-PCR-flat.json +1079 -0
- package/lib/labware/definitions/1/96-PCR-tall.json +1079 -0
- package/lib/labware/definitions/1/96-deep-well.json +1079 -0
- package/lib/labware/definitions/1/96-flat.json +1079 -0
- package/lib/labware/definitions/1/96-well-plate-20mm.json +1079 -0
- package/lib/labware/definitions/1/MALDI-plate.json +4282 -0
- package/lib/labware/definitions/1/PCR-strip-tall.json +1079 -0
- package/lib/labware/definitions/1/T25-flask.json +20 -0
- package/lib/labware/definitions/1/T75-flask.json +20 -0
- package/lib/labware/definitions/1/alum-block-pcr-strips.json +188 -0
- package/lib/labware/definitions/1/biorad-hardshell-96-PCR.json +1079 -0
- package/lib/labware/definitions/1/e-gelgol.json +1078 -0
- package/lib/labware/definitions/1/fixed-trash.json +19 -0
- package/lib/labware/definitions/1/hampton-1ml-deep-block.json +1078 -0
- package/lib/labware/definitions/1/opentrons-aluminum-block-2ml-eppendorf.json +281 -0
- package/lib/labware/definitions/1/opentrons-aluminum-block-2ml-screwcap.json +281 -0
- package/lib/labware/definitions/1/opentrons-aluminum-block-96-PCR-plate.json +1079 -0
- package/lib/labware/definitions/1/opentrons-aluminum-block-PCR-strips-200ul.json +1079 -0
- package/lib/labware/definitions/1/opentrons-tiprack-10ul.json +986 -0
- package/lib/labware/definitions/1/opentrons-tiprack-300ul.json +986 -0
- package/lib/labware/definitions/1/opentrons-tuberack-1.5ml-eppendorf.json +281 -0
- package/lib/labware/definitions/1/opentrons-tuberack-15_50ml.json +125 -0
- package/lib/labware/definitions/1/opentrons-tuberack-15ml.json +181 -0
- package/lib/labware/definitions/1/opentrons-tuberack-2ml-eppendorf.json +281 -0
- package/lib/labware/definitions/1/opentrons-tuberack-2ml-screwcap.json +281 -0
- package/lib/labware/definitions/1/opentrons-tuberack-50ml.json +80 -0
- package/lib/labware/definitions/1/point.json +18 -0
- package/lib/labware/definitions/1/rigaku-compact-crystallization-plate.json +2146 -0
- package/lib/labware/definitions/1/small_vial_rack_16x45.json +280 -0
- package/lib/labware/definitions/1/tall-fixed-trash.json +19 -0
- package/lib/labware/definitions/1/tiprack-1000ul-H.json +503 -0
- package/lib/labware/definitions/1/tiprack-1000ul-chem.json +1034 -0
- package/lib/labware/definitions/1/tiprack-1000ul.json +986 -0
- package/lib/labware/definitions/1/tiprack-10ul-H.json +503 -0
- package/lib/labware/definitions/1/tiprack-10ul.json +986 -0
- package/lib/labware/definitions/1/tiprack-200ul.json +986 -0
- package/lib/labware/definitions/1/trash-box.json +20 -0
- package/lib/labware/definitions/1/trough-12row-short.json +143 -0
- package/lib/labware/definitions/1/trough-12row.json +143 -0
- package/lib/labware/definitions/1/trough-1row-25ml.json +21 -0
- package/lib/labware/definitions/1/tube-rack-.75ml.json +281 -0
- package/lib/labware/definitions/1/tube-rack-15_50ml.json +125 -0
- package/lib/labware/definitions/1/tube-rack-2ml-9x9.json +911 -0
- package/lib/labware/definitions/1/tube-rack-2ml.json +281 -0
- package/lib/labware/definitions/1/tube-rack-5ml-96.json +1079 -0
- package/lib/labware/definitions/1/tube-rack-80well.json +907 -0
- package/lib/labware/definitions/1/wheaton_vial_rack.json +565 -0
- package/lib/labware/definitions/2/agilent_1_reservoir_290ml/1.json +54 -0
- package/lib/labware/definitions/2/appliedbiosystemsmicroamp_384_wellplate_40ul/1.json +4320 -0
- package/lib/labware/definitions/2/armadillo_96_wellplate_200ul_pcr_full_skirt/1.json +1019 -0
- package/lib/labware/definitions/2/armadillo_96_wellplate_200ul_pcr_full_skirt/2.json +1045 -0
- package/lib/labware/definitions/2/axygen_1_reservoir_90ml/1.json +56 -0
- package/lib/labware/definitions/2/biorad_384_wellplate_50ul/1.json +4329 -0
- package/lib/labware/definitions/2/biorad_384_wellplate_50ul/2.json +4331 -0
- package/lib/labware/definitions/2/biorad_96_wellplate_200ul_pcr/1.json +1020 -0
- package/lib/labware/definitions/2/biorad_96_wellplate_200ul_pcr/2.json +1046 -0
- package/lib/labware/definitions/2/corning_12_wellplate_6.9ml_flat/1.json +171 -0
- package/lib/labware/definitions/2/corning_12_wellplate_6.9ml_flat/2.json +180 -0
- package/lib/labware/definitions/2/corning_24_wellplate_3.4ml_flat/1.json +293 -0
- package/lib/labware/definitions/2/corning_24_wellplate_3.4ml_flat/2.json +300 -0
- package/lib/labware/definitions/2/corning_384_wellplate_112ul_flat/1.json +4703 -0
- package/lib/labware/definitions/2/corning_384_wellplate_112ul_flat/2.json +4717 -0
- package/lib/labware/definitions/2/corning_48_wellplate_1.6ml_flat/1.json +535 -0
- package/lib/labware/definitions/2/corning_48_wellplate_1.6ml_flat/2.json +544 -0
- package/lib/labware/definitions/2/corning_6_wellplate_16.8ml_flat/1.json +103 -0
- package/lib/labware/definitions/2/corning_6_wellplate_16.8ml_flat/2.json +110 -0
- package/lib/labware/definitions/2/corning_96_wellplate_360ul_flat/1.json +1049 -0
- package/lib/labware/definitions/2/corning_96_wellplate_360ul_flat/2.json +1063 -0
- package/lib/labware/definitions/2/eppendorf_96_tiprack_1000ul_eptips/1.json +1019 -0
- package/lib/labware/definitions/2/eppendorf_96_tiprack_10ul_eptips/1.json +1019 -0
- package/lib/labware/definitions/2/geb_96_tiprack_1000ul/1.json +1017 -0
- package/lib/labware/definitions/2/geb_96_tiprack_10ul/1.json +1017 -0
- package/lib/labware/definitions/2/nest_12_reservoir_15ml/1.json +190 -0
- package/lib/labware/definitions/2/nest_1_reservoir_195ml/1.json +54 -0
- package/lib/labware/definitions/2/nest_1_reservoir_195ml/2.json +56 -0
- package/lib/labware/definitions/2/nest_1_reservoir_290ml/1.json +54 -0
- package/lib/labware/definitions/2/nest_96_wellplate_100ul_pcr_full_skirt/1.json +1018 -0
- package/lib/labware/definitions/2/nest_96_wellplate_100ul_pcr_full_skirt/2.json +1039 -0
- package/lib/labware/definitions/2/nest_96_wellplate_200ul_flat/1.json +1017 -0
- package/lib/labware/definitions/2/nest_96_wellplate_200ul_flat/2.json +1031 -0
- package/lib/labware/definitions/2/nest_96_wellplate_2ml_deep/1.json +1121 -0
- package/lib/labware/definitions/2/nest_96_wellplate_2ml_deep/2.json +1137 -0
- package/lib/labware/definitions/2/opentrons_10_tuberack_falcon_4x50ml_6x15ml_conical/1.json +164 -0
- package/lib/labware/definitions/2/opentrons_10_tuberack_falcon_4x50ml_6x15ml_conical_acrylic/1.json +162 -0
- package/lib/labware/definitions/2/opentrons_10_tuberack_nest_4x50ml_6x15ml_conical/1.json +160 -0
- package/lib/labware/definitions/2/opentrons_15_tuberack_falcon_15ml_conical/1.json +211 -0
- package/lib/labware/definitions/2/opentrons_15_tuberack_nest_15ml_conical/1.json +209 -0
- package/lib/labware/definitions/2/opentrons_1_trash_1100ml_fixed/1.json +50 -0
- package/lib/labware/definitions/2/opentrons_1_trash_3200ml_fixed/1.json +50 -0
- package/lib/labware/definitions/2/opentrons_1_trash_850ml_fixed/1.json +50 -0
- package/lib/labware/definitions/2/opentrons_24_aluminumblock_generic_2ml_screwcap/1.json +300 -0
- package/lib/labware/definitions/2/opentrons_24_aluminumblock_generic_2ml_screwcap/2.json +301 -0
- package/lib/labware/definitions/2/opentrons_24_aluminumblock_nest_0.5ml_screwcap/1.json +299 -0
- package/lib/labware/definitions/2/opentrons_24_aluminumblock_nest_1.5ml_screwcap/1.json +299 -0
- package/lib/labware/definitions/2/opentrons_24_aluminumblock_nest_1.5ml_snapcap/1.json +301 -0
- package/lib/labware/definitions/2/opentrons_24_aluminumblock_nest_2ml_screwcap/1.json +299 -0
- package/lib/labware/definitions/2/opentrons_24_aluminumblock_nest_2ml_snapcap/1.json +301 -0
- package/lib/labware/definitions/2/opentrons_24_tuberack_eppendorf_1.5ml_safelock_snapcap/1.json +312 -0
- package/lib/labware/definitions/2/opentrons_24_tuberack_eppendorf_2ml_safelock_snapcap/1.json +311 -0
- package/lib/labware/definitions/2/opentrons_24_tuberack_eppendorf_2ml_safelock_snapcap_acrylic/1.json +309 -0
- package/lib/labware/definitions/2/opentrons_24_tuberack_generic_0.75ml_snapcap_acrylic/1.json +298 -0
- package/lib/labware/definitions/2/opentrons_24_tuberack_generic_2ml_screwcap/1.json +300 -0
- package/lib/labware/definitions/2/opentrons_24_tuberack_nest_0.5ml_screwcap/1.json +300 -0
- package/lib/labware/definitions/2/opentrons_24_tuberack_nest_1.5ml_screwcap/1.json +300 -0
- package/lib/labware/definitions/2/opentrons_24_tuberack_nest_1.5ml_snapcap/1.json +302 -0
- package/lib/labware/definitions/2/opentrons_24_tuberack_nest_2ml_screwcap/1.json +300 -0
- package/lib/labware/definitions/2/opentrons_24_tuberack_nest_2ml_snapcap/1.json +302 -0
- package/lib/labware/definitions/2/opentrons_40_aluminumblock_eppendorf_24x2ml_safelock_snapcap_generic_16x0.2ml_pcr_strip/1.json +481 -0
- package/lib/labware/definitions/2/opentrons_6_tuberack_falcon_50ml_conical/1.json +112 -0
- package/lib/labware/definitions/2/opentrons_6_tuberack_nest_50ml_conical/1.json +110 -0
- package/lib/labware/definitions/2/opentrons_96_aluminumblock_biorad_wellplate_200ul/1.json +1029 -0
- package/lib/labware/definitions/2/opentrons_96_aluminumblock_generic_pcr_strip_200ul/1.json +1026 -0
- package/lib/labware/definitions/2/opentrons_96_aluminumblock_generic_pcr_strip_200ul/2.json +1027 -0
- package/lib/labware/definitions/2/opentrons_96_aluminumblock_nest_wellplate_100ul/1.json +1027 -0
- package/lib/labware/definitions/2/opentrons_96_deep_well_adapter/1.json +41 -0
- package/lib/labware/definitions/2/opentrons_96_deep_well_adapter_nest_wellplate_2ml_deep/1.json +1121 -0
- package/lib/labware/definitions/2/opentrons_96_filtertiprack_1000ul/1.json +1017 -0
- package/lib/labware/definitions/2/opentrons_96_filtertiprack_10ul/1.json +1017 -0
- package/lib/labware/definitions/2/opentrons_96_filtertiprack_200ul/1.json +1017 -0
- package/lib/labware/definitions/2/opentrons_96_filtertiprack_20ul/1.json +1017 -0
- package/lib/labware/definitions/2/opentrons_96_flat_bottom_adapter/1.json +41 -0
- package/lib/labware/definitions/2/opentrons_96_flat_bottom_adapter_nest_wellplate_200ul_flat/1.json +1027 -0
- package/lib/labware/definitions/2/opentrons_96_pcr_adapter/1.json +1032 -0
- package/lib/labware/definitions/2/opentrons_96_pcr_adapter_armadillo_wellplate_200ul/1.json +1027 -0
- package/lib/labware/definitions/2/opentrons_96_pcr_adapter_nest_wellplate_100ul_pcr_full_skirt/1.json +1025 -0
- package/lib/labware/definitions/2/opentrons_96_tiprack_1000ul/1.json +1019 -0
- package/lib/labware/definitions/2/opentrons_96_tiprack_10ul/1.json +1019 -0
- package/lib/labware/definitions/2/opentrons_96_tiprack_20ul/1.json +1019 -0
- package/lib/labware/definitions/2/opentrons_96_tiprack_300ul/1.json +1019 -0
- package/lib/labware/definitions/2/opentrons_96_well_aluminum_block/1.json +1032 -0
- package/lib/labware/definitions/2/opentrons_96_wellplate_200ul_pcr_full_skirt/1.json +1019 -0
- package/lib/labware/definitions/2/opentrons_96_wellplate_200ul_pcr_full_skirt/2.json +1045 -0
- package/lib/labware/definitions/2/opentrons_aluminum_flat_bottom_plate/1.json +41 -0
- package/lib/labware/definitions/2/opentrons_calibration_adapter_heatershaker_module/1.json +62 -0
- package/lib/labware/definitions/2/opentrons_calibration_adapter_temperature_module/1.json +62 -0
- package/lib/labware/definitions/2/opentrons_calibration_adapter_thermocycler_module/1.json +69 -0
- package/lib/labware/definitions/2/opentrons_calibrationblock_short_side_left/1.json +71 -0
- package/lib/labware/definitions/2/opentrons_calibrationblock_short_side_right/1.json +71 -0
- package/lib/labware/definitions/2/opentrons_flex_96_filtertiprack_1000ul/1.json +1026 -0
- package/lib/labware/definitions/2/opentrons_flex_96_filtertiprack_200ul/1.json +1026 -0
- package/lib/labware/definitions/2/opentrons_flex_96_filtertiprack_50ul/1.json +1026 -0
- package/lib/labware/definitions/2/opentrons_flex_96_tiprack_1000ul/1.json +1026 -0
- package/lib/labware/definitions/2/opentrons_flex_96_tiprack_200ul/1.json +1026 -0
- package/lib/labware/definitions/2/opentrons_flex_96_tiprack_50ul/1.json +1026 -0
- package/lib/labware/definitions/2/opentrons_flex_96_tiprack_adapter/1.json +41 -0
- package/lib/labware/definitions/2/opentrons_universal_flat_adapter/1.json +151 -0
- package/lib/labware/definitions/2/opentrons_universal_flat_adapter_corning_384_wellplate_112ul_flat/1.json +4710 -0
- package/lib/labware/definitions/2/thermoscientificnunc_96_wellplate_1300ul/1.json +1019 -0
- package/lib/labware/definitions/2/thermoscientificnunc_96_wellplate_2000ul/1.json +1019 -0
- package/lib/labware/definitions/2/tipone_96_tiprack_200ul/1.json +1017 -0
- package/lib/labware/definitions/2/usascientific_12_reservoir_22ml/1.json +192 -0
- package/lib/labware/definitions/2/usascientific_96_wellplate_2.4ml_deep/1.json +1116 -0
- package/lib/labware/fixtures/1/fixture_tiprack.json +986 -0
- package/lib/labware/fixtures/2/fixture_12_trough.json +188 -0
- package/lib/labware/fixtures/2/fixture_12_trough_v2.json +188 -0
- package/lib/labware/fixtures/2/fixture_24_tuberack.json +295 -0
- package/lib/labware/fixtures/2/fixture_384_plate.json +4316 -0
- package/lib/labware/fixtures/2/fixture_96_plate.json +1015 -0
- package/lib/labware/fixtures/2/fixture_flex_96_tiprack_1000ul.json +1026 -0
- package/lib/labware/fixtures/2/fixture_flex_96_tiprack_adapter.json +41 -0
- package/lib/labware/fixtures/2/fixture_irregular_example_1.json +600 -0
- package/lib/labware/fixtures/2/fixture_overlappy_wellplate.json +1113 -0
- package/lib/labware/fixtures/2/fixture_regular_example_1.json +57 -0
- package/lib/labware/fixtures/2/fixture_regular_example_2.json +95 -0
- package/lib/labware/fixtures/2/fixture_tiprack_1000_ul.json +1015 -0
- package/lib/labware/fixtures/2/fixture_tiprack_10_ul.json +1015 -0
- package/lib/labware/fixtures/2/fixture_tiprack_300_ul.json +1014 -0
- package/lib/labware/fixtures/2/fixture_trash.json +50 -0
- package/lib/labware/schemas/2.json +372 -0
- package/lib/liquid/schemas/1.json +21 -0
- package/lib/liquid/types/index.d.ts +5 -0
- package/lib/module/definitions/1.json +57 -0
- package/lib/module/definitions/2/magneticModuleV1.json +22 -0
- package/lib/module/definitions/2/magneticModuleV2.json +69 -0
- package/lib/module/definitions/2/temperatureModuleV1.json +22 -0
- package/lib/module/definitions/2/temperatureModuleV2.json +69 -0
- package/lib/module/definitions/2/thermocyclerModuleV1.json +23 -0
- package/lib/module/definitions/3/heaterShakerModuleV1.json +529 -0
- package/lib/module/definitions/3/magneticBlockV1.json +199 -0
- package/lib/module/definitions/3/magneticModuleV1.json +435 -0
- package/lib/module/definitions/3/magneticModuleV2.json +488 -0
- package/lib/module/definitions/3/temperatureModuleV1.json +190 -0
- package/lib/module/definitions/3/temperatureModuleV2.json +323 -0
- package/lib/module/definitions/3/thermocyclerModuleV1.json +1380 -0
- package/lib/module/definitions/3/thermocyclerModuleV2.json +3686 -0
- package/lib/module/fixtures/3/compatibleGenerationV1.json +69 -0
- package/lib/module/fixtures/3/compatibleGenerationV2.json +69 -0
- package/lib/module/fixtures/3/incompatibleGenerationV1.json +22 -0
- package/lib/module/fixtures/3/incompatibleGenerationV2.json +69 -0
- package/lib/module/schemas/1.json +54 -0
- package/lib/module/schemas/2.json +112 -0
- package/lib/module/schemas/3.json +206 -0
- package/lib/opentrons-shared-data.js +1 -1
- package/lib/opentrons-shared-data.js.map +1 -1
- package/lib/pipette/definitions/1/pipetteModelSpecs.json +10314 -0
- package/lib/pipette/definitions/1/pipetteNameSpecs.json +694 -0
- package/lib/pipette/definitions/2/general/eight_channel/p10/1_0.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p10/1_3.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p10/1_4.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p10/1_5.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p10/1_6.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p1000/1_0.json +68 -0
- package/lib/pipette/definitions/2/general/eight_channel/p1000/3_0.json +68 -0
- package/lib/pipette/definitions/2/general/eight_channel/p1000/3_3.json +68 -0
- package/lib/pipette/definitions/2/general/eight_channel/p1000/3_4.json +68 -0
- package/lib/pipette/definitions/2/general/eight_channel/p1000/3_5.json +68 -0
- package/lib/pipette/definitions/2/general/eight_channel/p20/2_0.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p20/2_1.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p300/1_0.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p300/1_3.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p300/1_4.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p300/1_5.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p300/2_0.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p300/2_1.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p50/1_0.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p50/1_3.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p50/1_4.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p50/1_5.json +59 -0
- package/lib/pipette/definitions/2/general/eight_channel/p50/3_0.json +74 -0
- package/lib/pipette/definitions/2/general/eight_channel/p50/3_3.json +74 -0
- package/lib/pipette/definitions/2/general/eight_channel/p50/3_4.json +74 -0
- package/lib/pipette/definitions/2/general/eight_channel/p50/3_5.json +74 -0
- package/lib/pipette/definitions/2/general/ninety_six_channel/p1000/1_0.json +87 -0
- package/lib/pipette/definitions/2/general/ninety_six_channel/p1000/3_0.json +92 -0
- package/lib/pipette/definitions/2/general/ninety_six_channel/p1000/3_3.json +87 -0
- package/lib/pipette/definitions/2/general/ninety_six_channel/p1000/3_4.json +87 -0
- package/lib/pipette/definitions/2/general/ninety_six_channel/p1000/3_5.json +87 -0
- package/lib/pipette/definitions/2/general/single_channel/p10/1_0.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p10/1_3.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p10/1_4.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p10/1_5.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p1000/1_0.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p1000/1_3.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p1000/1_4.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p1000/1_5.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p1000/2_0.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p1000/2_1.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p1000/2_2.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p1000/3_0.json +61 -0
- package/lib/pipette/definitions/2/general/single_channel/p1000/3_3.json +61 -0
- package/lib/pipette/definitions/2/general/single_channel/p1000/3_4.json +61 -0
- package/lib/pipette/definitions/2/general/single_channel/p1000/3_5.json +61 -0
- package/lib/pipette/definitions/2/general/single_channel/p1000/3_6.json +61 -0
- package/lib/pipette/definitions/2/general/single_channel/p20/2_0.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p20/2_1.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p20/2_2.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p300/1_0.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p300/1_3.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p300/1_4.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p300/1_5.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p300/2_0.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p300/2_1.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p50/1_0.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p50/1_3.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p50/1_4.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p50/1_5.json +52 -0
- package/lib/pipette/definitions/2/general/single_channel/p50/3_0.json +67 -0
- package/lib/pipette/definitions/2/general/single_channel/p50/3_3.json +67 -0
- package/lib/pipette/definitions/2/general/single_channel/p50/3_4.json +67 -0
- package/lib/pipette/definitions/2/general/single_channel/p50/3_5.json +67 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p10/1_0.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p10/1_3.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p10/1_4.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p10/1_5.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p10/1_6.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p1000/1_0.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p1000/3_0.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p1000/3_3.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p1000/3_4.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p1000/3_5.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p20/2_0.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p20/2_1.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p300/1_0.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p300/1_3.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p300/1_4.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p300/1_5.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p300/2_0.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p300/2_1.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p50/1_0.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p50/1_3.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p50/1_4.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p50/1_5.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p50/3_0.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p50/3_3.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p50/3_4.json +37 -0
- package/lib/pipette/definitions/2/geometry/eight_channel/p50/3_5.json +37 -0
- package/lib/pipette/definitions/2/geometry/ninety_six_channel/p1000/1_0.json +291 -0
- package/lib/pipette/definitions/2/geometry/ninety_six_channel/p1000/3_0.json +291 -0
- package/lib/pipette/definitions/2/geometry/ninety_six_channel/p1000/3_3.json +291 -0
- package/lib/pipette/definitions/2/geometry/ninety_six_channel/p1000/3_4.json +291 -0
- package/lib/pipette/definitions/2/geometry/ninety_six_channel/p1000/3_5.json +291 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p10/1_0.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p10/1_3.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p10/1_4.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p10/1_5.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p1000/1_0.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p1000/1_3.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p1000/1_4.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p1000/1_5.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p1000/2_0.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p1000/2_1.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p1000/2_2.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p1000/3_0.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p1000/3_3.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p1000/3_4.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p1000/3_5.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p1000/3_6.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p20/2_0.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p20/2_1.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p20/2_2.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p300/1_0.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p300/1_3.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p300/1_4.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p300/1_5.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p300/2_0.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p300/2_1.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p50/1_0.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p50/1_3.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p50/1_4.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p50/1_5.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p50/3_0.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p50/3_3.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p50/3_4.json +10 -0
- package/lib/pipette/definitions/2/geometry/single_channel/p50/3_5.json +10 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p10/default/1_0.json +58 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p10/default/1_3.json +58 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p10/default/1_4.json +58 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p10/default/1_5.json +47 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p10/default/1_6.json +55 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p1000/default/1_0.json +356 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p1000/default/3_0.json +359 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p1000/default/3_3.json +359 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p1000/default/3_4.json +359 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p1000/default/3_5.json +239 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p20/default/2_0.json +311 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p20/default/2_1.json +191 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p300/default/1_0.json +67 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p300/default/1_3.json +67 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p300/default/1_4.json +67 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p300/default/1_5.json +67 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p300/default/2_0.json +190 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p300/default/2_1.json +190 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p50/default/1_0.json +128 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p50/default/1_3.json +128 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p50/default/1_4.json +128 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p50/default/1_5.json +110 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p50/default/3_0.json +99 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p50/default/3_3.json +99 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p50/default/3_4.json +99 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p50/default/3_5.json +91 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p50/lowVolumeDefault/3_0.json +94 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p50/lowVolumeDefault/3_3.json +89 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p50/lowVolumeDefault/3_4.json +89 -0
- package/lib/pipette/definitions/2/liquid/eight_channel/p50/lowVolumeDefault/3_5.json +89 -0
- package/lib/pipette/definitions/2/liquid/ninety_six_channel/p1000/default/1_0.json +188 -0
- package/lib/pipette/definitions/2/liquid/ninety_six_channel/p1000/default/3_0.json +188 -0
- package/lib/pipette/definitions/2/liquid/ninety_six_channel/p1000/default/3_3.json +188 -0
- package/lib/pipette/definitions/2/liquid/ninety_six_channel/p1000/default/3_4.json +188 -0
- package/lib/pipette/definitions/2/liquid/ninety_six_channel/p1000/default/3_5.json +188 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p10/default/1_0.json +59 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p10/default/1_3.json +59 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p10/default/1_4.json +56 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p10/default/1_5.json +54 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p1000/default/1_0.json +48 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p1000/default/1_3.json +48 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p1000/default/1_4.json +48 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p1000/default/1_5.json +48 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p1000/default/2_0.json +105 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p1000/default/2_1.json +107 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p1000/default/2_2.json +107 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p1000/default/3_0.json +356 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p1000/default/3_3.json +356 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p1000/default/3_4.json +282 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p1000/default/3_5.json +204 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p1000/default/3_6.json +204 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p20/default/2_0.json +431 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p20/default/2_1.json +251 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p20/default/2_2.json +311 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p300/default/1_0.json +99 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p300/default/1_3.json +99 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p300/default/1_4.json +99 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p300/default/1_5.json +75 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p300/default/2_0.json +188 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p300/default/2_1.json +188 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p50/default/1_0.json +119 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p50/default/1_3.json +128 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p50/default/1_4.json +128 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p50/default/1_5.json +104 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p50/default/3_0.json +98 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p50/default/3_3.json +98 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p50/default/3_4.json +100 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p50/default/3_5.json +80 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p50/lowVolumeDefault/3_0.json +78 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p50/lowVolumeDefault/3_3.json +78 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p50/lowVolumeDefault/3_4.json +78 -0
- package/lib/pipette/definitions/2/liquid/single_channel/p50/lowVolumeDefault/3_5.json +76 -0
- package/lib/pipette/fixtures/name/pipetteNameSpecFixtures.json +170 -0
- package/lib/pipette/schemas/1/pipetteModelSpecsSchema.json +153 -0
- package/lib/pipette/schemas/1/pipetteNameSpecsSchema.json +89 -0
- package/lib/pipette/schemas/2/pipetteGeometrySchema.json +81 -0
- package/lib/pipette/schemas/2/pipetteLiquidPropertiesSchema.json +120 -0
- package/lib/pipette/schemas/2/pipettePropertiesSchema.json +287 -0
- package/lib/protocol/fixtures/1/simple.json +73 -0
- package/lib/protocol/fixtures/3/simple.json +1307 -0
- package/lib/protocol/fixtures/3/testAllAtomicSingleV3.json +2281 -0
- package/lib/protocol/fixtures/3/testTrickyLabwareV3.json +2576 -0
- package/lib/protocol/fixtures/3/unusedPipette.json +1311 -0
- package/lib/protocol/fixtures/4/pipetteMultiChannelProtocolV4.json +2561 -0
- package/lib/protocol/fixtures/4/simpleV4.json +1309 -0
- package/lib/protocol/fixtures/4/testMagneticModuleV4.json +2156 -0
- package/lib/protocol/fixtures/4/testModulesProtocol.json +2561 -0
- package/lib/protocol/fixtures/4/testTemperatureModuleV4.json +1480 -0
- package/lib/protocol/fixtures/4/testThermocyclerModuleV4.json +2182 -0
- package/lib/protocol/fixtures/4/transferSettings.json +5482 -0
- package/lib/protocol/fixtures/5/multipleTipracks.json +2476 -0
- package/lib/protocol/fixtures/5/multipleTipracksWithTC.json +3544 -0
- package/lib/protocol/fixtures/5/simpleV5.json +1328 -0
- package/lib/protocol/fixtures/6/heaterShakerCommands.json +1421 -0
- package/lib/protocol/fixtures/6/heaterShakerCommandsWithResultsKey.json +4725 -0
- package/lib/protocol/fixtures/6/multipleTempModules.json +11060 -0
- package/lib/protocol/fixtures/6/multipleTipracks.json +5020 -0
- package/lib/protocol/fixtures/6/multipleTipracksWithTC.json +7057 -0
- package/lib/protocol/fixtures/6/oneTiprack.json +1388 -0
- package/lib/protocol/fixtures/6/simpleV6.json +1493 -0
- package/lib/protocol/fixtures/6/tempAndMagModuleCommands.json +1412 -0
- package/lib/protocol/fixtures/6/transferSettings.json +11060 -0
- package/lib/protocol/fixtures/7/moveLabware.json +1303 -0
- package/lib/protocol/fixtures/7/simpleV7.json +1495 -0
- package/lib/protocol/fixtures/8/moveLabware8.json +1309 -0
- package/lib/protocol/fixtures/8/moveLabwareFlex8.json +1309 -0
- package/lib/protocol/fixtures/8/simpleFlexV8.json +1475 -0
- package/lib/protocol/fixtures/8/simpleV8.json +1473 -0
- package/lib/protocol/index.d.ts +10 -0
- package/lib/protocol/schemas/1.json +365 -0
- package/lib/protocol/schemas/2.json +390 -0
- package/lib/protocol/schemas/3.json +336 -0
- package/lib/protocol/schemas/4.json +620 -0
- package/lib/protocol/schemas/5.json +658 -0
- package/lib/protocol/schemas/6.json +1166 -0
- package/lib/protocol/schemas/7.json +270 -0
- package/lib/protocol/schemas/8.json +141 -0
- package/lib/protocol/types/schemaV1.d.ts +89 -0
- package/lib/protocol/types/schemaV3.d.ts +100 -0
- package/lib/protocol/types/schemaV4.d.ts +102 -0
- package/lib/protocol/types/schemaV5.d.ts +24 -0
- package/lib/protocol/types/schemaV5Addendum.d.ts +13 -0
- package/lib/protocol/types/schemaV6/command/gantry.d.ts +110 -0
- package/lib/protocol/types/schemaV6/command/index.d.ts +46 -0
- package/lib/protocol/types/schemaV6/command/module.d.ts +187 -0
- package/lib/protocol/types/schemaV6/command/pipetting.d.ts +75 -0
- package/lib/protocol/types/schemaV6/command/setup.d.ts +96 -0
- package/lib/protocol/types/schemaV6/command/timing.d.ts +39 -0
- package/lib/protocol/types/schemaV6/index.d.ts +110 -0
- package/lib/protocol/types/schemaV7/command/annotation.d.ts +24 -0
- package/lib/protocol/types/schemaV7/command/calibration.d.ts +58 -0
- package/lib/protocol/types/schemaV7/command/gantry.d.ts +111 -0
- package/lib/protocol/types/schemaV7/command/incidental.d.ts +15 -0
- package/lib/protocol/types/schemaV7/command/index.d.ts +40 -0
- package/lib/protocol/types/schemaV7/command/module.d.ts +191 -0
- package/lib/protocol/types/schemaV7/command/pipetting.d.ts +119 -0
- package/lib/protocol/types/schemaV7/command/setup.d.ts +108 -0
- package/lib/protocol/types/schemaV7/command/timing.d.ts +39 -0
- package/lib/protocol/types/schemaV7/index.d.ts +94 -0
- package/lib/protocol/types/schemaV8/index.d.ts +126 -0
- package/package.json +1 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// json protocol file validator tests
|
|
2
|
+
import fixtureV1JsonProtocol from '../../../protocol/fixtures/1/simple.json'
|
|
3
|
+
import fixtureV3JsonProtocol from '../../../protocol/fixtures/3/simple.json'
|
|
4
|
+
import fixtureV4JsonProtocol from '../../../protocol/fixtures/4/simpleV4.json'
|
|
5
|
+
import fixtureV5JsonProtocol from '../../../protocol/fixtures/5/simpleV5.json'
|
|
6
|
+
import {
|
|
7
|
+
fileExtensionIsPython,
|
|
8
|
+
fileExtensionIsJson,
|
|
9
|
+
fileExtensionIsZip,
|
|
10
|
+
validateJsonProtocolFileContents,
|
|
11
|
+
parseProtocolData,
|
|
12
|
+
} from '../parseProtocolData'
|
|
13
|
+
|
|
14
|
+
describe('validateJsonProtocolFileContents', () => {
|
|
15
|
+
let handleError: jest.MockedFunction<any>
|
|
16
|
+
// beforeAll
|
|
17
|
+
|
|
18
|
+
beforeEach(() => {
|
|
19
|
+
handleError = jest.fn()
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
afterEach(() => {
|
|
23
|
+
jest.resetAllMocks()
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
it(`should validate schemaV3 JSON protocol`, () => {
|
|
27
|
+
const data = validateJsonProtocolFileContents(
|
|
28
|
+
JSON.stringify(fixtureV3JsonProtocol)
|
|
29
|
+
)
|
|
30
|
+
expect(data).toStrictEqual(fixtureV3JsonProtocol)
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
it(`should validate schemaV4 JSON protocol`, () => {
|
|
34
|
+
const data = validateJsonProtocolFileContents(
|
|
35
|
+
JSON.stringify(fixtureV4JsonProtocol)
|
|
36
|
+
)
|
|
37
|
+
expect(data).toStrictEqual(fixtureV4JsonProtocol)
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
it(`should validate schemaV5 JSON protocol`, () => {
|
|
41
|
+
const data = validateJsonProtocolFileContents(
|
|
42
|
+
JSON.stringify(fixtureV5JsonProtocol)
|
|
43
|
+
)
|
|
44
|
+
expect(data).toStrictEqual(fixtureV5JsonProtocol)
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
it('should call handleError with INVALID_FILE_TYPE if empty json', () => {
|
|
48
|
+
validateJsonProtocolFileContents('[]', handleError)
|
|
49
|
+
expect(handleError).toBeCalledWith('INVALID_JSON_FILE', {
|
|
50
|
+
rawError: expect.any(Error),
|
|
51
|
+
})
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
it('should call handleError with INVALID_JSON_FILE if json does not validate against schema', () => {
|
|
55
|
+
validateJsonProtocolFileContents(
|
|
56
|
+
JSON.stringify(fixtureV1JsonProtocol),
|
|
57
|
+
handleError
|
|
58
|
+
)
|
|
59
|
+
expect(handleError).toBeCalledWith('INVALID_JSON_FILE', {
|
|
60
|
+
schemaErrors: expect.any(Array),
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
it('should call handleError with INVALID_JSON_FILE if json is not parseable', () => {
|
|
65
|
+
const parseSpy = jest.spyOn(JSON, 'parse')
|
|
66
|
+
parseSpy.mockImplementation(() => {
|
|
67
|
+
throw new Error('not parseable as JSON')
|
|
68
|
+
})
|
|
69
|
+
validateJsonProtocolFileContents('[]', handleError)
|
|
70
|
+
expect(handleError).toBeCalledWith('INVALID_JSON_FILE', {
|
|
71
|
+
rawError: expect.any(Error),
|
|
72
|
+
})
|
|
73
|
+
parseSpy.mockRestore()
|
|
74
|
+
})
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
describe('file extension validators', () => {
|
|
78
|
+
describe('fileExtensionIsPython', () => {
|
|
79
|
+
it(`should return true if file name ends in .py`, () => {
|
|
80
|
+
expect(fileExtensionIsPython('foo.py')).toBe(true)
|
|
81
|
+
})
|
|
82
|
+
it(`should return false if file name ends in anything other than .py`, () => {
|
|
83
|
+
expect(fileExtensionIsPython('foo.json')).toBe(false)
|
|
84
|
+
expect(fileExtensionIsPython('foo.zip')).toBe(false)
|
|
85
|
+
expect(fileExtensionIsPython('foo.pie')).toBe(false)
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
describe('fileExtensionIsJson', () => {
|
|
89
|
+
it(`should return true if file name ends in .json`, () => {
|
|
90
|
+
expect(fileExtensionIsJson('foo.json')).toBe(true)
|
|
91
|
+
})
|
|
92
|
+
it(`should return false if file name ends in anything other than .json`, () => {
|
|
93
|
+
expect(fileExtensionIsJson('foo.py')).toBe(false)
|
|
94
|
+
expect(fileExtensionIsJson('foo.zip')).toBe(false)
|
|
95
|
+
expect(fileExtensionIsJson('foo.pie')).toBe(false)
|
|
96
|
+
})
|
|
97
|
+
})
|
|
98
|
+
describe('fileExtensionIsZip', () => {
|
|
99
|
+
it(`should return true if file name ends in .zip`, () => {
|
|
100
|
+
expect(fileExtensionIsZip('foo.zip')).toBe(true)
|
|
101
|
+
})
|
|
102
|
+
it(`should return false if file name ends in anything other than .zip`, () => {
|
|
103
|
+
expect(fileExtensionIsZip('foo.py')).toBe(false)
|
|
104
|
+
expect(fileExtensionIsZip('foo.json')).toBe(false)
|
|
105
|
+
expect(fileExtensionIsZip('foo.pie')).toBe(false)
|
|
106
|
+
})
|
|
107
|
+
})
|
|
108
|
+
describe('fileIsBinary', () => {
|
|
109
|
+
it(`should return true if file name ends in .zip`, () => {
|
|
110
|
+
expect(fileExtensionIsZip('foo.zip')).toBe(true)
|
|
111
|
+
})
|
|
112
|
+
it(`should return false if file name ends in anything other than .zip`, () => {
|
|
113
|
+
expect(fileExtensionIsZip('foo.py')).toBe(false)
|
|
114
|
+
expect(fileExtensionIsZip('foo.json')).toBe(false)
|
|
115
|
+
expect(fileExtensionIsZip('foo.pie')).toBe(false)
|
|
116
|
+
})
|
|
117
|
+
})
|
|
118
|
+
})
|
|
119
|
+
|
|
120
|
+
describe('parseProtocolData', () => {
|
|
121
|
+
let handleError: jest.MockedFunction<any>
|
|
122
|
+
beforeEach(() => {
|
|
123
|
+
handleError = jest.fn()
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
afterEach(() => {
|
|
127
|
+
jest.resetAllMocks()
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
it(`should return null if not JSON and metadata not given`, () => {
|
|
131
|
+
const contents = 'from math import sqrt'
|
|
132
|
+
const pythonFile = new File([contents], 'foo.py')
|
|
133
|
+
expect(parseProtocolData(pythonFile, contents)).toBe(null)
|
|
134
|
+
})
|
|
135
|
+
it(`should return metadata if not JSON and metadata is given`, () => {
|
|
136
|
+
const contents = 'from math import sqrt'
|
|
137
|
+
const pythonFile = new File([contents], 'foo.py')
|
|
138
|
+
const metadata = {
|
|
139
|
+
'protocol-name': 'Foo Extraction',
|
|
140
|
+
author: 'Dr. Bar Baz',
|
|
141
|
+
} as any
|
|
142
|
+
expect(
|
|
143
|
+
parseProtocolData(pythonFile, contents, handleError, metadata)
|
|
144
|
+
).toStrictEqual({ metadata })
|
|
145
|
+
})
|
|
146
|
+
it(`should return JSON protocol file if valid json protocol given`, () => {
|
|
147
|
+
const contents = JSON.stringify(fixtureV5JsonProtocol)
|
|
148
|
+
const jsonFile = new File([contents], 'valid.json')
|
|
149
|
+
expect(parseProtocolData(jsonFile, contents, handleError)).toStrictEqual(
|
|
150
|
+
fixtureV5JsonProtocol
|
|
151
|
+
)
|
|
152
|
+
})
|
|
153
|
+
it(`should call handleError if given JSON protocol not valid`, () => {
|
|
154
|
+
const contents = JSON.stringify(fixtureV1JsonProtocol)
|
|
155
|
+
const jsonFile = new File([contents], 'invalid.json')
|
|
156
|
+
expect(parseProtocolData(jsonFile, contents, handleError)).toBe(null)
|
|
157
|
+
expect(handleError).toHaveBeenCalled()
|
|
158
|
+
})
|
|
159
|
+
it(`should call handleError if given invalid file extension`, () => {
|
|
160
|
+
const contents = JSON.stringify(fixtureV1JsonProtocol)
|
|
161
|
+
const jsonFile = new File([contents], 'invalid.foobar')
|
|
162
|
+
expect(parseProtocolData(jsonFile, contents, handleError)).toBe(null)
|
|
163
|
+
expect(handleError).toHaveBeenCalledWith('INVALID_FILE_TYPE')
|
|
164
|
+
})
|
|
165
|
+
})
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// volume helpers tests
|
|
2
|
+
import * as helpers from '..'
|
|
3
|
+
|
|
4
|
+
interface BaseSpec<T extends (...args: any) => any> {
|
|
5
|
+
name: string
|
|
6
|
+
func: T
|
|
7
|
+
input: Parameters<T>
|
|
8
|
+
expected: ReturnType<T>
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type GetDisplayVolumeSpec = BaseSpec<typeof helpers.getDisplayVolume>
|
|
12
|
+
|
|
13
|
+
type GetAsciiVolumeUnitsSpec = BaseSpec<typeof helpers.getAsciiVolumeUnits>
|
|
14
|
+
|
|
15
|
+
type EnsureVolumeUnitsSpec = BaseSpec<typeof helpers.ensureVolumeUnits>
|
|
16
|
+
|
|
17
|
+
type TestSpec =
|
|
18
|
+
| GetDisplayVolumeSpec
|
|
19
|
+
| GetAsciiVolumeUnitsSpec
|
|
20
|
+
| EnsureVolumeUnitsSpec
|
|
21
|
+
|
|
22
|
+
describe('volume helpers', () => {
|
|
23
|
+
const SPECS: TestSpec[] = [
|
|
24
|
+
{
|
|
25
|
+
name: 'getDisplayVolume outputs µL string by default',
|
|
26
|
+
func: helpers.getDisplayVolume,
|
|
27
|
+
input: [380],
|
|
28
|
+
expected: '380',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'getDisplayVolume converts to mL',
|
|
32
|
+
func: helpers.getDisplayVolume,
|
|
33
|
+
input: [4200, 'mL'],
|
|
34
|
+
expected: '4.2',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'getDisplayVolume converts to L',
|
|
38
|
+
func: helpers.getDisplayVolume,
|
|
39
|
+
input: [800000, 'L'],
|
|
40
|
+
expected: '0.8',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'getDisplayVolume can round to fixed digits',
|
|
44
|
+
func: helpers.getDisplayVolume,
|
|
45
|
+
input: [123456789, 'L', 3],
|
|
46
|
+
expected: '123.457',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'getAsciiVolumeUnits converts µL to uL',
|
|
50
|
+
func: helpers.getAsciiVolumeUnits,
|
|
51
|
+
input: ['µL'],
|
|
52
|
+
expected: 'uL',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'getAsciiVolumeUnits leaves mL alone',
|
|
56
|
+
func: helpers.getAsciiVolumeUnits,
|
|
57
|
+
input: ['mL'],
|
|
58
|
+
expected: 'mL',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'getAsciiVolumeUnits leaves L alone',
|
|
62
|
+
func: helpers.getAsciiVolumeUnits,
|
|
63
|
+
input: ['L'],
|
|
64
|
+
expected: 'L',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'ensureVolumeUnits converts undefined to µL',
|
|
68
|
+
func: helpers.ensureVolumeUnits,
|
|
69
|
+
input: [undefined],
|
|
70
|
+
expected: 'µL',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'ensureVolumeUnits converts uL to µL',
|
|
74
|
+
func: helpers.ensureVolumeUnits,
|
|
75
|
+
input: ['uL'],
|
|
76
|
+
expected: 'µL',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'ensureVolumeUnits leaves mL alone',
|
|
80
|
+
func: helpers.ensureVolumeUnits,
|
|
81
|
+
input: ['mL'],
|
|
82
|
+
expected: 'mL',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'ensureVolumeUnits leaves L alone',
|
|
86
|
+
func: helpers.ensureVolumeUnits,
|
|
87
|
+
input: ['L'],
|
|
88
|
+
expected: 'L',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'ensureVolumeUnits converts ml to mL',
|
|
92
|
+
func: helpers.ensureVolumeUnits,
|
|
93
|
+
input: ['ml'],
|
|
94
|
+
expected: 'mL',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: 'ensureVolumeUnits leaves l to L',
|
|
98
|
+
func: helpers.ensureVolumeUnits,
|
|
99
|
+
input: ['l'],
|
|
100
|
+
expected: 'L',
|
|
101
|
+
},
|
|
102
|
+
]
|
|
103
|
+
|
|
104
|
+
SPECS.forEach(s => {
|
|
105
|
+
// @ts-expect-error(mc, 2021-04-27): rewrite as regular tests
|
|
106
|
+
it(`should ${s.name}`, () => expect(s.func(...s.input)).toEqual(s.expected))
|
|
107
|
+
})
|
|
108
|
+
})
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import pipetteNameSpecsFixtures from '../../../pipette/fixtures/name/pipetteNameSpecFixtures.json'
|
|
2
|
+
import fixture_12_trough from '../../../labware/fixtures/2/fixture_12_trough.json'
|
|
3
|
+
import fixture_96_plate from '../../../labware/fixtures/2/fixture_96_plate.json'
|
|
4
|
+
import fixture_384_plate from '../../../labware/fixtures/2/fixture_384_plate.json'
|
|
5
|
+
import fixture_overlappy_wellplate from '../../../labware/fixtures/2/fixture_overlappy_wellplate.json'
|
|
6
|
+
import { makeWellSetHelpers } from '../wellSets'
|
|
7
|
+
import { findWellAt } from '../getWellNamePerMultiTip'
|
|
8
|
+
import { get96Channel384WellPlateWells, orderWells } from '..'
|
|
9
|
+
|
|
10
|
+
import type { LabwareDefinition2, PipetteNameSpecs } from '../../types'
|
|
11
|
+
import type { WellSetHelpers } from '../wellSets'
|
|
12
|
+
|
|
13
|
+
const fixtureP10Single = pipetteNameSpecsFixtures.p10_single as PipetteNameSpecs
|
|
14
|
+
const fixtureP10Multi = pipetteNameSpecsFixtures.p10_multi as PipetteNameSpecs
|
|
15
|
+
const fixtureP100096 = (pipetteNameSpecsFixtures.p1000_96 as any) as PipetteNameSpecs
|
|
16
|
+
const fixture12Trough = fixture_12_trough as LabwareDefinition2
|
|
17
|
+
const fixture96Plate = fixture_96_plate as LabwareDefinition2
|
|
18
|
+
const fixture384Plate = fixture_384_plate as LabwareDefinition2
|
|
19
|
+
const fixtureOverlappyWellplate = fixture_overlappy_wellplate as LabwareDefinition2
|
|
20
|
+
const EIGHT_CHANNEL = 8
|
|
21
|
+
const NINETY_SIX_CHANNEL = 96
|
|
22
|
+
const wellsForReservoir = [
|
|
23
|
+
'A1',
|
|
24
|
+
'A2',
|
|
25
|
+
'A3',
|
|
26
|
+
'A4',
|
|
27
|
+
'A5',
|
|
28
|
+
'A6',
|
|
29
|
+
'A7',
|
|
30
|
+
'A8',
|
|
31
|
+
'A9',
|
|
32
|
+
'A10',
|
|
33
|
+
'A11',
|
|
34
|
+
'A12',
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
const wellsFor96WellPlate = [
|
|
38
|
+
'A1',
|
|
39
|
+
'B1',
|
|
40
|
+
'C1',
|
|
41
|
+
'D1',
|
|
42
|
+
'E1',
|
|
43
|
+
'F1',
|
|
44
|
+
'G1',
|
|
45
|
+
'H1',
|
|
46
|
+
'A2',
|
|
47
|
+
'B2',
|
|
48
|
+
'C2',
|
|
49
|
+
'D2',
|
|
50
|
+
'E2',
|
|
51
|
+
'F2',
|
|
52
|
+
'G2',
|
|
53
|
+
'H2',
|
|
54
|
+
'A3',
|
|
55
|
+
'B3',
|
|
56
|
+
'C3',
|
|
57
|
+
'D3',
|
|
58
|
+
'E3',
|
|
59
|
+
'F3',
|
|
60
|
+
'G3',
|
|
61
|
+
'H3',
|
|
62
|
+
'A4',
|
|
63
|
+
'B4',
|
|
64
|
+
'C4',
|
|
65
|
+
'D4',
|
|
66
|
+
'E4',
|
|
67
|
+
'F4',
|
|
68
|
+
'G4',
|
|
69
|
+
'H4',
|
|
70
|
+
'A5',
|
|
71
|
+
'B5',
|
|
72
|
+
'C5',
|
|
73
|
+
'D5',
|
|
74
|
+
'E5',
|
|
75
|
+
'F5',
|
|
76
|
+
'G5',
|
|
77
|
+
'H5',
|
|
78
|
+
'A6',
|
|
79
|
+
'B6',
|
|
80
|
+
'C6',
|
|
81
|
+
'D6',
|
|
82
|
+
'E6',
|
|
83
|
+
'F6',
|
|
84
|
+
'G6',
|
|
85
|
+
'H6',
|
|
86
|
+
'A7',
|
|
87
|
+
'B7',
|
|
88
|
+
'C7',
|
|
89
|
+
'D7',
|
|
90
|
+
'E7',
|
|
91
|
+
'F7',
|
|
92
|
+
'G7',
|
|
93
|
+
'H7',
|
|
94
|
+
'A8',
|
|
95
|
+
'B8',
|
|
96
|
+
'C8',
|
|
97
|
+
'D8',
|
|
98
|
+
'E8',
|
|
99
|
+
'F8',
|
|
100
|
+
'G8',
|
|
101
|
+
'H8',
|
|
102
|
+
'A9',
|
|
103
|
+
'B9',
|
|
104
|
+
'C9',
|
|
105
|
+
'D9',
|
|
106
|
+
'E9',
|
|
107
|
+
'F9',
|
|
108
|
+
'G9',
|
|
109
|
+
'H9',
|
|
110
|
+
'A10',
|
|
111
|
+
'B10',
|
|
112
|
+
'C10',
|
|
113
|
+
'D10',
|
|
114
|
+
'E10',
|
|
115
|
+
'F10',
|
|
116
|
+
'G10',
|
|
117
|
+
'H10',
|
|
118
|
+
'A11',
|
|
119
|
+
'B11',
|
|
120
|
+
'C11',
|
|
121
|
+
'D11',
|
|
122
|
+
'E11',
|
|
123
|
+
'F11',
|
|
124
|
+
'G11',
|
|
125
|
+
'H11',
|
|
126
|
+
'A12',
|
|
127
|
+
'B12',
|
|
128
|
+
'C12',
|
|
129
|
+
'D12',
|
|
130
|
+
'E12',
|
|
131
|
+
'F12',
|
|
132
|
+
'G12',
|
|
133
|
+
'H12',
|
|
134
|
+
]
|
|
135
|
+
|
|
136
|
+
describe('findWellAt', () => {
|
|
137
|
+
it('should determine if given (x, y) is within a rectangular well', () => {
|
|
138
|
+
const def: any = {
|
|
139
|
+
wells: {
|
|
140
|
+
A1: {
|
|
141
|
+
shape: 'rectangular',
|
|
142
|
+
x: 200,
|
|
143
|
+
y: 200,
|
|
144
|
+
xDimension: 10,
|
|
145
|
+
yDimension: 10,
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
}
|
|
149
|
+
const middle = findWellAt(def, 200, 200)
|
|
150
|
+
expect(middle).toBe('A1')
|
|
151
|
+
|
|
152
|
+
const insideCornerNE = findWellAt(def, 200 - 4, 200 + 4)
|
|
153
|
+
expect(insideCornerNE).toEqual('A1')
|
|
154
|
+
|
|
155
|
+
// exactly at an edge doesn't count
|
|
156
|
+
const exactlyOnCornerNE = findWellAt(def, 200 - 5, 200 + 5)
|
|
157
|
+
expect(exactlyOnCornerNE).toBeUndefined()
|
|
158
|
+
|
|
159
|
+
const exactlyOnWEdge = findWellAt(def, 200, 200 - 5)
|
|
160
|
+
expect(exactlyOnWEdge).toBeUndefined()
|
|
161
|
+
|
|
162
|
+
const justOutsideToEast = findWellAt(def, 200 + 5.1, 200)
|
|
163
|
+
expect(justOutsideToEast).toBeUndefined()
|
|
164
|
+
})
|
|
165
|
+
|
|
166
|
+
it('should determine if given (x, y) is within a circular well', () => {
|
|
167
|
+
const def: any = {
|
|
168
|
+
wells: {
|
|
169
|
+
A1: {
|
|
170
|
+
shape: 'circular',
|
|
171
|
+
x: 200,
|
|
172
|
+
y: 200,
|
|
173
|
+
diameter: 10,
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
}
|
|
177
|
+
const middle = findWellAt(def, 200, 200)
|
|
178
|
+
expect(middle).toBe('A1')
|
|
179
|
+
|
|
180
|
+
const inside = findWellAt(def, 200 - 1, 200 + 1)
|
|
181
|
+
expect(inside).toEqual('A1')
|
|
182
|
+
|
|
183
|
+
// exactly at an edge doesn't count
|
|
184
|
+
const exactlyOnWEdge = findWellAt(def, 200, 200 - 5)
|
|
185
|
+
expect(exactlyOnWEdge).toBeUndefined()
|
|
186
|
+
|
|
187
|
+
const justOutsideToEast = findWellAt(def, 200 + 5.1, 200)
|
|
188
|
+
expect(justOutsideToEast).toBeUndefined()
|
|
189
|
+
})
|
|
190
|
+
})
|
|
191
|
+
describe('canPipetteUseLabware', () => {
|
|
192
|
+
let canPipetteUseLabware: WellSetHelpers['canPipetteUseLabware']
|
|
193
|
+
|
|
194
|
+
beforeEach(() => {
|
|
195
|
+
const helpers = makeWellSetHelpers()
|
|
196
|
+
canPipetteUseLabware = helpers.canPipetteUseLabware
|
|
197
|
+
})
|
|
198
|
+
|
|
199
|
+
it('returns false when wells are too close together for multi channel pipettes', () => {
|
|
200
|
+
const labwareDef = fixtureOverlappyWellplate
|
|
201
|
+
const pipette = fixtureP10Multi
|
|
202
|
+
const pipette96 = fixtureP100096
|
|
203
|
+
|
|
204
|
+
expect(canPipetteUseLabware(pipette, labwareDef)).toBe(false)
|
|
205
|
+
expect(canPipetteUseLabware(pipette96, labwareDef)).toBe(false)
|
|
206
|
+
})
|
|
207
|
+
|
|
208
|
+
it('returns true when pipette is single channel', () => {
|
|
209
|
+
const labwareDef = fixtureOverlappyWellplate
|
|
210
|
+
const pipette = fixtureP10Single
|
|
211
|
+
|
|
212
|
+
expect(canPipetteUseLabware(pipette, labwareDef)).toBe(true)
|
|
213
|
+
})
|
|
214
|
+
})
|
|
215
|
+
|
|
216
|
+
describe('getWellSetForMultichannel (integration test)', () => {
|
|
217
|
+
let getWellSetForMultichannel: WellSetHelpers['getWellSetForMultichannel']
|
|
218
|
+
|
|
219
|
+
beforeEach(() => {
|
|
220
|
+
const helpers = makeWellSetHelpers()
|
|
221
|
+
getWellSetForMultichannel = helpers.getWellSetForMultichannel
|
|
222
|
+
})
|
|
223
|
+
|
|
224
|
+
it('96-flat', () => {
|
|
225
|
+
const labwareDef = fixture96Plate
|
|
226
|
+
|
|
227
|
+
expect(getWellSetForMultichannel(labwareDef, 'A1', EIGHT_CHANNEL)).toEqual([
|
|
228
|
+
'A1',
|
|
229
|
+
'B1',
|
|
230
|
+
'C1',
|
|
231
|
+
'D1',
|
|
232
|
+
'E1',
|
|
233
|
+
'F1',
|
|
234
|
+
'G1',
|
|
235
|
+
'H1',
|
|
236
|
+
])
|
|
237
|
+
|
|
238
|
+
expect(getWellSetForMultichannel(labwareDef, 'B1', EIGHT_CHANNEL)).toEqual([
|
|
239
|
+
'A1',
|
|
240
|
+
'B1',
|
|
241
|
+
'C1',
|
|
242
|
+
'D1',
|
|
243
|
+
'E1',
|
|
244
|
+
'F1',
|
|
245
|
+
'G1',
|
|
246
|
+
'H1',
|
|
247
|
+
])
|
|
248
|
+
|
|
249
|
+
expect(getWellSetForMultichannel(labwareDef, 'H1', EIGHT_CHANNEL)).toEqual([
|
|
250
|
+
'A1',
|
|
251
|
+
'B1',
|
|
252
|
+
'C1',
|
|
253
|
+
'D1',
|
|
254
|
+
'E1',
|
|
255
|
+
'F1',
|
|
256
|
+
'G1',
|
|
257
|
+
'H1',
|
|
258
|
+
])
|
|
259
|
+
|
|
260
|
+
expect(getWellSetForMultichannel(labwareDef, 'A2', EIGHT_CHANNEL)).toEqual([
|
|
261
|
+
'A2',
|
|
262
|
+
'B2',
|
|
263
|
+
'C2',
|
|
264
|
+
'D2',
|
|
265
|
+
'E2',
|
|
266
|
+
'F2',
|
|
267
|
+
'G2',
|
|
268
|
+
'H2',
|
|
269
|
+
])
|
|
270
|
+
|
|
271
|
+
// 96-channel
|
|
272
|
+
expect(
|
|
273
|
+
getWellSetForMultichannel(labwareDef, 'A1', NINETY_SIX_CHANNEL)
|
|
274
|
+
).toEqual(wellsFor96WellPlate)
|
|
275
|
+
})
|
|
276
|
+
|
|
277
|
+
it('invalid well', () => {
|
|
278
|
+
const labwareDef = fixture96Plate
|
|
279
|
+
|
|
280
|
+
expect(
|
|
281
|
+
getWellSetForMultichannel(labwareDef, 'A13', EIGHT_CHANNEL)
|
|
282
|
+
).toBeFalsy()
|
|
283
|
+
})
|
|
284
|
+
|
|
285
|
+
it('trough-12row', () => {
|
|
286
|
+
const labwareDef = fixture12Trough
|
|
287
|
+
|
|
288
|
+
expect(getWellSetForMultichannel(labwareDef, 'A1', EIGHT_CHANNEL)).toEqual([
|
|
289
|
+
'A1',
|
|
290
|
+
'A1',
|
|
291
|
+
'A1',
|
|
292
|
+
'A1',
|
|
293
|
+
'A1',
|
|
294
|
+
'A1',
|
|
295
|
+
'A1',
|
|
296
|
+
'A1',
|
|
297
|
+
])
|
|
298
|
+
|
|
299
|
+
expect(getWellSetForMultichannel(labwareDef, 'A2', EIGHT_CHANNEL)).toEqual([
|
|
300
|
+
'A2',
|
|
301
|
+
'A2',
|
|
302
|
+
'A2',
|
|
303
|
+
'A2',
|
|
304
|
+
'A2',
|
|
305
|
+
'A2',
|
|
306
|
+
'A2',
|
|
307
|
+
'A2',
|
|
308
|
+
])
|
|
309
|
+
|
|
310
|
+
// 96-channel
|
|
311
|
+
expect(
|
|
312
|
+
getWellSetForMultichannel(labwareDef, 'A1', NINETY_SIX_CHANNEL)
|
|
313
|
+
).toEqual(wellsForReservoir)
|
|
314
|
+
})
|
|
315
|
+
|
|
316
|
+
it('384-plate', () => {
|
|
317
|
+
const labwareDef = fixture384Plate
|
|
318
|
+
const well96Channel = 'A1'
|
|
319
|
+
const all384Wells = orderWells(labwareDef.ordering, 't2b', 'l2r')
|
|
320
|
+
const ninetySixChannelWells = get96Channel384WellPlateWells(
|
|
321
|
+
all384Wells,
|
|
322
|
+
well96Channel
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
expect(getWellSetForMultichannel(labwareDef, 'C1', EIGHT_CHANNEL)).toEqual([
|
|
326
|
+
'A1',
|
|
327
|
+
'C1',
|
|
328
|
+
'E1',
|
|
329
|
+
'G1',
|
|
330
|
+
'I1',
|
|
331
|
+
'K1',
|
|
332
|
+
'M1',
|
|
333
|
+
'O1',
|
|
334
|
+
])
|
|
335
|
+
|
|
336
|
+
expect(getWellSetForMultichannel(labwareDef, 'F2', EIGHT_CHANNEL)).toEqual([
|
|
337
|
+
'B2',
|
|
338
|
+
'D2',
|
|
339
|
+
'F2',
|
|
340
|
+
'H2',
|
|
341
|
+
'J2',
|
|
342
|
+
'L2',
|
|
343
|
+
'N2',
|
|
344
|
+
'P2',
|
|
345
|
+
])
|
|
346
|
+
|
|
347
|
+
// 96-channel
|
|
348
|
+
expect(
|
|
349
|
+
getWellSetForMultichannel(labwareDef, well96Channel, NINETY_SIX_CHANNEL)
|
|
350
|
+
).toEqual(ninetySixChannelWells)
|
|
351
|
+
})
|
|
352
|
+
})
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// TODO(jr, 10/19/23): should extend getWellNamePerMultiTip to use similar math for 96-channel and 384 well plates
|
|
2
|
+
// instead of special casing using this util
|
|
3
|
+
export function get96Channel384WellPlateWells(
|
|
4
|
+
all384Wells: string[],
|
|
5
|
+
well: string
|
|
6
|
+
): string[] {
|
|
7
|
+
const totalWells = 96 * 2 // multiplying 2 because we will remove either odd or even numbers
|
|
8
|
+
|
|
9
|
+
const filterWellsFor96Channel = (start: number, isOdd: boolean): string[] => {
|
|
10
|
+
const filteredWells: string[] = []
|
|
11
|
+
let count = start
|
|
12
|
+
for (let i = 0; i < totalWells; i++) {
|
|
13
|
+
if (count < all384Wells.length) {
|
|
14
|
+
const well = all384Wells[count]
|
|
15
|
+
const numberFromWell = well.match(/\d+/)
|
|
16
|
+
if (numberFromWell) {
|
|
17
|
+
const number = parseInt(numberFromWell[0])
|
|
18
|
+
if ((number % 2 === 1 && isOdd) || (number % 2 === 0 && !isOdd)) {
|
|
19
|
+
filteredWells.push(well)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
count += 2
|
|
23
|
+
} else {
|
|
24
|
+
break
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return filteredWells
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const allSetsOfWells = [
|
|
31
|
+
filterWellsFor96Channel(0, true),
|
|
32
|
+
filterWellsFor96Channel(1, true),
|
|
33
|
+
filterWellsFor96Channel(0, false),
|
|
34
|
+
filterWellsFor96Channel(1, false),
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
for (const wells of allSetsOfWells) {
|
|
38
|
+
if (wells.includes(well)) {
|
|
39
|
+
return wells
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return []
|
|
44
|
+
}
|