Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(protocol-designer, step-generation): remove redundant offset… #17346

Open
wants to merge 1 commit into
base: edge
Choose a base branch
from

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Jan 24, 2025

… parameters for mix

closes AUTH-1367

Overview

This PR cleans up the redundant offset parameters for mixFormToArgs

MixArgs currently has fields like:

aspirateOffsetFromBottomMm: number
dispenseOffsetFromBottomMm: number
aspirateXOffset: number
dispenseXOffset: number
aspirateYOffset: number
dispenseYOffset: number

This is way more than what a user can actually select in the UI, which is:

Mix tip position:

X position
Y position
Z position

Additionally, there was a bug with the mix advanced setting for a transfer step where the x,y,z offset behavior wasn't consistent. See slack for more details.

Test Plan and Hands on Testing

Review code. Then, test out that the mix x,y,z offsets work correctly for a transfer advanced setting. Add a mix to both the aspirate and dispense and see that the offsets are consistent for aspirate and dispense within a mix. (see slack thread for more details on what to expect) I smoke tested this already and it works as expected now!

Changelog

  • remove redundant mix offset parameters: aspirate & dispense x, y, z offsets are now narrowed down to 1 for both aspirate and dispense
  • clean up constants so now there is just 1 for the default mm from bottom offset
  • fix bug with moveLiquid advanced settings mix for aspirate and dispense

Risk assessment

low-ish

@jerader jerader requested a review from a team as a code owner January 24, 2025 22:02
@jerader jerader requested review from ddcc4, koji and ncdiehl11 January 24, 2025 22:02
Copy link
Contributor

@ddcc4 ddcc4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additionally, there was a bug with the mix advanced setting for a transfer step where the x,y,z offset behavior wasn't consistent. See slack for more details.

Yeah, confirm with @sanni-t that the new behavior matches the behavior of the mix inside transfer_liquid(). (I think it does.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants