Skip to content

Commit 8eadaf2

Browse files
authored
fix(app): properly configure peek pipette for quick transfer protocols (#18293)
fix RQA-4176
1 parent 252d849 commit 8eadaf2

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

app/src/organisms/ODD/QuickTransferFlow/utils/generateQuickTransferArgs.ts

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
import uuidv1 from 'uuid/v4'
2-
import intersection from 'lodash/intersection'
31
import {
4-
orderWells,
52
getAllDefinitions,
63
getLabwareDefURI,
74
getTipTypeFromTipRackDefinition,
5+
orderWells,
86
TRASH_BIN_ADAPTER_FIXTURE,
97
WASTE_CHUTE_FIXTURES,
108
} from '@opentrons/shared-data'
11-
import { makeInitialRobotState } from '@opentrons/step-generation'
12-
import {
13-
DEFAULT_MM_BLOWOUT_OFFSET_FROM_TOP,
14-
DEFAULT_MM_TOUCH_TIP_OFFSET_FROM_TOP,
15-
} from '../constants'
169
import type {
1710
CutoutConfig,
18-
LabwareDefinition2,
1911
DeckConfiguration,
20-
PipetteName,
12+
LabwareDefinition2,
2113
NozzleConfigurationStyle,
14+
PipetteName,
2215
} from '@opentrons/shared-data'
23-
import type { QuickTransferSummaryState } from '../types'
16+
import { makeInitialRobotState } from '@opentrons/step-generation'
2417
import type {
18+
AdditionalEquipmentEntities,
2519
ConsolidateArgs,
2620
DistributeArgs,
27-
TransferArgs,
2821
InvariantContext,
29-
PipetteEntities,
3022
LabwareEntities,
23+
PipetteEntities,
3124
RobotState,
32-
AdditionalEquipmentEntities,
25+
TransferArgs,
3326
} from '@opentrons/step-generation'
27+
import intersection from 'lodash/intersection'
28+
import uuidv1 from 'uuid/v4'
29+
import {
30+
DEFAULT_MM_BLOWOUT_OFFSET_FROM_TOP,
31+
DEFAULT_MM_TOUCH_TIP_OFFSET_FROM_TOP,
32+
} from '../constants'
33+
import type { QuickTransferSummaryState } from '../types'
3434

3535
type MoveLiquidStepArgs = ConsolidateArgs | DistributeArgs | TransferArgs | null
3636

@@ -50,7 +50,11 @@ function getInvariantContextAndRobotState(
5050
): { invariantContext: InvariantContext; robotState: RobotState } {
5151
const tipRackDefURI = getLabwareDefURI(quickTransferState.tipRack)
5252
let pipetteName = quickTransferState.pipette.model
53-
if (quickTransferState.pipette.channels === 1) {
53+
// we have to special case the peek pipette as it doesn't follow
54+
// our pipette definition naming conventions
55+
if (quickTransferState.pipette.displayName === 'FLEX 8-Channel EM 1000 µL') {
56+
pipetteName = 'p1000_multi_em_flex'
57+
} else if (quickTransferState.pipette.channels === 1) {
5458
pipetteName = pipetteName + `_single_flex`
5559
} else if (quickTransferState.pipette.channels === 8) {
5660
pipetteName = pipetteName + `_multi_flex`

0 commit comments

Comments
 (0)