File tree Expand file tree Collapse file tree 6 files changed +4
-19
lines changed
protocol-designer/src/steplist
getNextRobotStateAndWarnings Expand file tree Collapse file tree 6 files changed +4
-19
lines changed Original file line number Diff line number Diff line change @@ -66,22 +66,17 @@ const _createNextTimelineFrame = (args: {
66
66
volume : args . volume ,
67
67
activeTips : _getNewActiveTips ( args . nextFrame . commands . slice ( 0 , args . index ) ) ,
68
68
}
69
- const command = args . command
70
- const isAirGapCommand =
71
- 'meta' in command && command . meta != null && 'isAirGap' in command . meta
72
69
73
70
const newTimelineFrame =
74
71
args . command . commandType === 'aspirate' ||
75
72
args . command . commandType === 'aspirateInPlace'
76
73
? {
77
74
..._newTimelineFrameKeys ,
78
75
source : args . wellInfo ,
79
- isAirGap : isAirGapCommand ,
80
76
}
81
77
: {
82
78
..._newTimelineFrameKeys ,
83
79
dest : args . wellInfo ,
84
- isAirGap : isAirGapCommand ,
85
80
}
86
81
return newTimelineFrame
87
82
}
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import type { Point } from '../../utils'
26
26
export interface ExtendedAspirateParams extends AspDispAirgapParams {
27
27
tipRack : string
28
28
nozzles : NozzleConfigurationStyle | null
29
- isAirGap ?: boolean
30
29
}
31
30
/** Aspirate with given args. Requires tip. */
32
31
export const aspirate : CommandCreator < ExtendedAspirateParams > = (
Original file line number Diff line number Diff line change @@ -104,4 +104,3 @@ export const DEST_LABWARE = 'destPlateId'
104
104
export const TROUGH_LABWARE = 'troughId'
105
105
export const DEFAULT_BLOWOUT_WELL = 'A1'
106
106
export const TIPRACK_1 = 'tiprack1Id'
107
- export const AIR_GAP_META = { isAirGap : true } // to differentiate if the aspirate or dispense command is an air gap or not
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export function forAspirate(
31
31
labwareDef ,
32
32
params . wellName
33
33
)
34
-
34
+ console . log ( 'volume in forAspirate' , volume )
35
35
console . assert (
36
36
// @ts -expect-error (sa, 2021-05-03): this assert is unnecessary
37
37
uniq ( wellsForTips ) . length === allWellsShared ? 1 : wellsForTips . length ,
Original file line number Diff line number Diff line change @@ -63,19 +63,11 @@ function _getNextRobotStateAndWarningsSingleCommand(
63
63
assert ( command , 'undefined command passed to getNextRobotStateAndWarning' )
64
64
switch ( command . commandType ) {
65
65
case 'aspirate' :
66
- if ( command . meta ?. isAirGap === true ) {
67
- break
68
- } else {
69
- forAspirate ( command . params , invariantContext , robotStateAndWarnings )
70
- }
66
+ forAspirate ( command . params , invariantContext , robotStateAndWarnings )
71
67
break
72
68
73
69
case 'dispense' :
74
- if ( command . meta ?. isAirGap === true ) {
75
- break
76
- } else {
77
- forDispense ( command . params , invariantContext , robotStateAndWarnings )
78
- }
70
+ forDispense ( command . params , invariantContext , robotStateAndWarnings )
79
71
break
80
72
81
73
case 'blowout' :
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ export function splitLiquid(
112
112
sourceLiquidState : LocationLiquidState
113
113
) : SourceAndDest {
114
114
const totalSourceVolume = getLocationTotalVolume ( sourceLiquidState )
115
-
115
+ console . log ( 'volume in splitLiquid' , volume )
116
116
if ( totalSourceVolume === 0 ) {
117
117
// Splitting from empty source
118
118
return {
You can’t perform that action at this time.
0 commit comments