@@ -9,21 +9,20 @@ import * as errorCreators from '../../errorCreators'
9
9
import { getPipetteWithTipMaxVol } from '../../robotStateSelectors'
10
10
import { dropTipInTrash } from './dropTipInTrash'
11
11
import {
12
+ airGapLocationHelper ,
12
13
blowoutLocationHelper ,
13
14
curryCommandCreator ,
14
- reduceCommandCreators ,
15
- airGapLocationHelper ,
16
15
dispenseLocationHelper ,
17
- moveHelper ,
18
- getIsSafePipetteMovement ,
19
16
getHasWasteChute ,
17
+ getIsSafePipetteMovement ,
18
+ moveAndDelayLocationHelper ,
19
+ reduceCommandCreators ,
20
20
} from '../../utils'
21
21
import {
22
22
aspirate ,
23
23
configureForVolume ,
24
24
delay ,
25
25
dropTip ,
26
- moveToWell ,
27
26
touchTip ,
28
27
} from '../atomic'
29
28
import { mixUtil } from './mix'
@@ -200,20 +199,11 @@ export const consolidate: CommandCreator<ConsolidateArgs> = (
200
199
const delayAfterAspirateCommands =
201
200
aspirateDelay != null
202
201
? [
203
- curryCommandCreator ( moveToWell , {
202
+ curryCommandCreator ( moveAndDelayLocationHelper , {
204
203
pipetteId : args . pipette ,
205
- labwareId : args . sourceLabware ,
206
- wellName : sourceWell ,
207
- wellLocation : {
208
- origin : 'bottom' ,
209
- offset : {
210
- x : 0 ,
211
- y : 0 ,
212
- z : aspirateDelay . mmFromBottom ,
213
- } ,
214
- } ,
215
- } ) ,
216
- curryCommandCreator ( delay , {
204
+ destinationId : args . sourceLabware ,
205
+ well : sourceWell ,
206
+ zOffset : aspirateDelay . mmFromBottom ,
217
207
seconds : aspirateDelay . seconds ,
218
208
} ) ,
219
209
]
@@ -371,13 +361,11 @@ export const consolidate: CommandCreator<ConsolidateArgs> = (
371
361
const delayAfterDispenseCommands =
372
362
dispenseDelay != null
373
363
? [
374
- curryCommandCreator ( moveHelper , {
364
+ curryCommandCreator ( moveAndDelayLocationHelper , {
375
365
pipetteId : args . pipette ,
376
366
destinationId : args . destLabware ,
377
- well : destinationWell ?? undefined ,
367
+ well : destinationWell ,
378
368
zOffset : dispenseDelay . mmFromBottom ,
379
- } ) ,
380
- curryCommandCreator ( delay , {
381
369
seconds : dispenseDelay . seconds ,
382
370
} ) ,
383
371
]
0 commit comments