-
Notifications
You must be signed in to change notification settings - Fork 185
feat(protocol-designer): implement OT-2 logic for liquid classes #18657
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
Conversation
This PR wires up OT-2 default values when creating a new moveLiquid step, including aspirate/dispense submerge/retract speeds and default disposal volumes for multiDispense path transfers. I also refactor the logic for stepping through the moveLiquid step form in attempt to share logic as much as possible for Flex and OT-2 protocol moveLiquid step creation. Lastly, I wire up aspirate/dispense submerge/retract speeds required, as well as remove liquid class compatibility warnings for OT-2.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## chore_release-pd-8.5.0 #18657 +/- ##
==========================================================
+ Coverage 25.89% 25.96% +0.07%
==========================================================
Files 3256 3256
Lines 281299 281661 +362
Branches 28540 28726 +186
==========================================================
+ Hits 72833 73144 +311
- Misses 208439 208490 +51
Partials 27 27
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
@@ -377,21 +376,33 @@ export function StepFormToolbox(props: StepFormToolboxProps): JSX.Element { | |||
} | |||
} | |||
|
|||
// For consistency and correct error rendering, we actually want the OT-2 mix/moveLiquid steps to contain 3 pages, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm i don't love this, but its okay for now. maybe we can revisit when we do the error refactoring post-8.5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but the alternative of special-casing the OT-2 move liquid form all over the place was even uglier sadly (I tried it)
protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepFormToolbox.tsx
Show resolved
Hide resolved
protocol-designer/src/steplist/formLevel/handleFormChange/utils.ts
Outdated
Show resolved
Hide resolved
@@ -165,22 +165,22 @@ | |||
"aspirate_mix_times": null, | |||
"aspirate_mix_volume": null, | |||
"aspirate_mmFromBottom": null, | |||
"aspirate_position_reference": null, | |||
"aspirate_position_reference": "well-bottom", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the reason why all these values changed is because the ot-2 has different default fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this corrects a previous error. the position references should be non-null
protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/StepFormToolbox.tsx
Outdated
Show resolved
Hide resolved
if ( | ||
// for OT-2, call continue logic after step 1 (pipette, tiprack, volume, etc.) rather than step 2 (liquid class selection) | ||
toolboxStep === (robotType === FLEX_ROBOT_TYPE ? 1 : 0) && | ||
numStepFormPages > 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe const LIQUID_CLASS_SELECTION_STEP
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, what do you mean here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Overview
This PR wires up OT-2 default values when creating a new moveLiquid step, including aspirate/dispense submerge/retract speeds and default disposal volumes for multiDispense path transfers. I also refactor the logic for stepping through the moveLiquid step form in attempt to share logic as much as possible for Flex and OT-2 protocol moveLiquid step creation. Lastly, I wire up aspirate/dispense submerge/retract speeds required, as well as remove liquid class compatibility warnings for OT-2.
Test Plan and Hands on Testing
Changelog
getNoLiquidClassValuesMoveLiquid
dependent on robot typeReview requests
see test plan
Risk assessment
low