Skip to content

Commit

Permalink
feat(protocol-designer, step-generation): multi tiprack selection per…
Browse files Browse the repository at this point in the history
… pipette support

closes AUTH-11, AUTH-13, AUTH-50
  • Loading branch information
jerader committed Mar 5, 2024
1 parent 733a304 commit bc21b8e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
6 changes: 4 additions & 2 deletions protocol-designer/cypress/integration/migrations.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ describe('Protocol fixtures migrate and match snapshots', () => {
migrationModal: 'v8',
},
{
title: '96-channel full and column schema 8 -> should migrate to 8.1.x, schema 8',
title:
'96-channel full and column schema 8 -> should migrate to 8.1.x, schema 8',
importFixture:
'../../fixtures/protocol/8/ninetySixChannelFullAndColumn.json',
expectedExportFixture:
Expand All @@ -55,7 +56,8 @@ describe('Protocol fixtures migrate and match snapshots', () => {
unusedPipettes: false,
},
{
title: 'doItAllV8 flex robot -> reimported, should migrate to 8.1.x, schema 8',
title:
'doItAllV8 flex robot -> reimported, should migrate to 8.1.x, schema 8',
importFixture: '../../fixtures/protocol/8/doItAllV8.json',
expectedExportFixture: '../../fixtures/protocol/8/doItAllV8.json',
migrationModal: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function PipetteTipsField(props: PipetteTipsFieldProps): JSX.Element | null {
const selectedValues = pipettesByMount[mount].tiprackDefURI ?? []

React.useEffect(() => {
if (selectedValues === undefined) {
if (selectedValues.length === 0) {
setValue(
`pipettesByMount.${mount}.tiprackDefURI`,
[tiprackOptions[0]?.value] ?? ['']
Expand Down
2 changes: 1 addition & 1 deletion step-generation/src/__tests__/aspirate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,4 +523,4 @@ describe('aspirate', () => {
type: 'HEATER_SHAKER_NORTH_SOUTH__OF_NON_TIPRACK_WITH_MULTI_CHANNEL',
})
})
})
})
3 changes: 1 addition & 2 deletions step-generation/src/commandCreators/compound/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export const transfer: CommandCreator<TransferArgs> = (
const aspirateAirGapVolume = args.aspirateAirGapVolume || 0
const dispenseAirGapVolume = args.dispenseAirGapVolume || 0
const effectiveTransferVol =
getPipetteWithTipMaxVol(args.pipette, invariantContext, tipRack) -
getPipetteWithTipMaxVol(args.pipette, invariantContext, tipRack) -
aspirateAirGapVolume
const pipetteMinVol = pipetteSpec.minVolume
const chunksPerSubTransfer = Math.ceil(args.volume / effectiveTransferVol)
Expand Down Expand Up @@ -407,7 +407,6 @@ export const transfer: CommandCreator<TransferArgs> = (
dispenseDelaySeconds: dispenseDelay?.seconds,
tipRack,
})

: []

const airGapAfterAspirateCommands =
Expand Down
2 changes: 1 addition & 1 deletion step-generation/src/errorCreators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,4 @@ export function noTipSelected(): CommandCreatorError {
type: 'NO_TIP_SELECTED',
message: 'No tips were selected for this step',
}
}
}

0 comments on commit bc21b8e

Please sign in to comment.