-
Notifications
You must be signed in to change notification settings - Fork 183
feat(protocol-designer): cap flow rate at hardware maximum #18859
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 ensures that the interpolated liquid class flow rate for aspirate, dispense, and blowout does not exceed the range prescribed by the pipette liquid definition's plunger curves. To achieve this, we reuse the max flow rate logic in `getMaxUiFlowRate` in the liquid class form change handler utils, to make sure the populated flow rates from the liquid class are physically possible. Closes RQA-4151
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## chore_release-pd-8.5.0 #18859 +/- ##
==========================================================
- Coverage 24.62% 24.60% -0.03%
==========================================================
Files 3263 3263
Lines 282679 282891 +212
Branches 30247 30244 -3
==========================================================
- Hits 69602 69596 -6
- Misses 213057 213275 +218
Partials 20 20
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
@@ -1,3 +1,4 @@ | |||
import { min } from 'lodash' |
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.
import { min } from 'lodash' | |
import min from 'lodash/min' |
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.
it works with the example you added. hopefully this is it for tweaking flow rate 🤞 i wonder if some of these utils can be moved to step-generation
or shared-data
so quick transfer can use them too? not necessary to do it in this PR, you can do it next week.
Yep, I actually mentioned that to Koji on one of his PRs, and I believe he is ticketing that refactor. Especially |
Overview
This PR ensures that the interpolated liquid class flow rate for aspirate, dispense, and blowout does not exceed the range prescribed by the pipette liquid definition's plunger curves. To achieve this, we reuse the max flow rate logic in
getMaxUiFlowRate
in the liquid class form change handler utils, to make sure the populated flow rates from the liquid class are physically possible.The code is a bit redundant in the various form change utils, but I am erring on the side of caution vs. DRY given the upcoming release. I can refactor the utilities in a followup post-release.
Closes RQA-4151
Test Plan and Hands on Testing
RQA4151_updated.py
)viscous
liquid classChangelog
getLiquidClassValuesMoveLiquid
andgetLiquidClassValuesMix
getMaxUiFlowRate
Review requests
see test plan
Risk assessment
medium. touches core logic of liquid class value population