Skip to content

Commit

Permalink
fix(app): lpc: fix command ordering in pick up tip (#12590)
Browse files Browse the repository at this point in the history
In LPC, when we picked up a tip that we'd actually use for the rest of
LPC, we'd remove the tiprack labware before moving to the trash. This is
incorrect - that labware is still physically present, since we haven't
told the user to remove it. We used to get away with it, because it used
to be that pick_up_tip ended with a z-home that got the pipette up high
enough that even if PE thought the deck was empty we wouldn't collide.

Now, though, on the Flex we removed that home because it is slow and we
don't need it anymore, and if we tell PE that the tiprack disappeared
and then tell it to move the pipette to the trash, it will just zip it
straight over to the trash... dragging along that tiprack, which is
still physically present.

To fix this, just move to the trash before we remove the labware.
  • Loading branch information
sfoster1 authored Apr 28, 2023
1 parent 688e35c commit 5dc6c26
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
1 change: 1 addition & 0 deletions api/release-notes-internal.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Some things are known not to work, and are listed below. Specific compatibility
- More focus on visuals around alignment, sizing, and spacing, especially between screens - this is mostly catchup from removing the menu bar
- Recently-run protocols is now populated!
- In general, it's pretty doable to run protocols and pre-protocol from the ODD; give it a try by sending a protocol to the flex with the "send to OT3" button in the desktop app
- LPC shouldn't drag tipracks around anymore

### Robot Control
- Even more acceleration changes from hardware testing
Expand Down
1 change: 1 addition & 0 deletions app-shell/build/release-notes-internal.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This is still pretty early in the process, so some things are known not to work,
- Flex instrument calibration shows up now
- 96-channels should show up in the instruments page and work in protocols
- We don't cause a lot of instrument polling anymore on the robot
- LPC shouldn't drag tipracks around anymore


## Big Things That Don't Work Yet So Don't Report Bugs About Them
Expand Down
16 changes: 8 additions & 8 deletions app/src/organisms/LabwarePositionCheck/PickUpTip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,6 @@ export const PickUpTip = (props: PickUpTipProps): JSX.Element | null => {
const handleConfirmTipAttached = (): void => {
chainRunCommands(
[
{
commandType: 'moveLabware' as const,
params: {
labwareId: labwareId,
newLocation: 'offDeck',
strategy: 'manualMoveWithoutPause',
},
},
{
commandType: 'moveToWell' as const,
params: {
Expand All @@ -220,6 +212,14 @@ export const PickUpTip = (props: PickUpTipProps): JSX.Element | null => {
wellLocation: { origin: 'top' as const },
},
},
{
commandType: 'moveLabware' as const,
params: {
labwareId: labwareId,
newLocation: 'offDeck',
strategy: 'manualMoveWithoutPause',
},
},
],
false
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,14 +374,6 @@ describe('PickUpTip', () => {
await expect(props.chainRunCommands).toHaveBeenNthCalledWith(
3,
[
{
commandType: 'moveLabware',
params: {
labwareId: 'labwareId1',
newLocation: 'offDeck',
strategy: 'manualMoveWithoutPause',
},
},
{
commandType: 'moveToWell',
params: {
Expand All @@ -391,6 +383,14 @@ describe('PickUpTip', () => {
wellLocation: { origin: 'top' },
},
},
{
commandType: 'moveLabware',
params: {
labwareId: 'labwareId1',
newLocation: 'offDeck',
strategy: 'manualMoveWithoutPause',
},
},
],
false
)
Expand Down

0 comments on commit 5dc6c26

Please sign in to comment.