1
- import uuidv1 from 'uuid/v4'
2
- import intersection from 'lodash/intersection'
3
1
import {
4
- orderWells ,
5
2
getAllDefinitions ,
6
3
getLabwareDefURI ,
7
4
getTipTypeFromTipRackDefinition ,
5
+ orderWells ,
8
6
TRASH_BIN_ADAPTER_FIXTURE ,
9
7
WASTE_CHUTE_FIXTURES ,
10
8
} 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'
16
9
import type {
17
10
CutoutConfig ,
18
- LabwareDefinition2 ,
19
11
DeckConfiguration ,
20
- PipetteName ,
12
+ LabwareDefinition2 ,
21
13
NozzleConfigurationStyle ,
14
+ PipetteName ,
22
15
} from '@opentrons/shared-data'
23
- import type { QuickTransferSummaryState } from '../types '
16
+ import { makeInitialRobotState } from '@opentrons/step-generation '
24
17
import type {
18
+ AdditionalEquipmentEntities ,
25
19
ConsolidateArgs ,
26
20
DistributeArgs ,
27
- TransferArgs ,
28
21
InvariantContext ,
29
- PipetteEntities ,
30
22
LabwareEntities ,
23
+ PipetteEntities ,
31
24
RobotState ,
32
- AdditionalEquipmentEntities ,
25
+ TransferArgs ,
33
26
} 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'
34
34
35
35
type MoveLiquidStepArgs = ConsolidateArgs | DistributeArgs | TransferArgs | null
36
36
@@ -50,7 +50,11 @@ function getInvariantContextAndRobotState(
50
50
) : { invariantContext : InvariantContext ; robotState : RobotState } {
51
51
const tipRackDefURI = getLabwareDefURI ( quickTransferState . tipRack )
52
52
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 ) {
54
58
pipetteName = pipetteName + `_single_flex`
55
59
} else if ( quickTransferState . pipette . channels === 8 ) {
56
60
pipetteName = pipetteName + `_multi_flex`
0 commit comments