-
Notifications
You must be signed in to change notification settings - Fork 183
fix(step-generation): list off-deck labware last in tip_racks arg #18758
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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## chore_release-pd-8.5.0 #18758 +/- ##
==========================================================
+ Coverage 25.65% 25.66% +0.01%
==========================================================
Files 3219 3219
Lines 278627 278652 +25
Branches 28962 28985 +23
==========================================================
+ Hits 71472 71524 +52
+ Misses 207126 207099 -27
Partials 29 29
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
const bOffDeck = | ||
getSlotInLocationStack(labwareRobotState[b.id].stack) === 'offDeck' | ||
return Number(aOffDeck) - Number(bOffDeck) | ||
}) |
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 is fine. It might take slightly less brainpower for a reader if you just split it into 2 lists though, like:
const onDeckTipracks = allTipracks.filter(...)
const offDeckTipracks = allTipracks.filter(...)
const tiprackPythonNames = [...onDeckTipracks, ...offDeckTipracks].map(...)
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.
oh ya i like that better actualy. i'm going to change it. thanks!
[] | ||
) | ||
// list off-deck labware last to match getNextTip logic | ||
const tiprackPythonNames = allTipracks |
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.
probably protecting the original array would be better.
const tiprackPythonNames = allTipracks | |
const tiprackPythonNames = [...allTipracks] |
closes RQA-4309
Overview
Alex ran into a bug where the
tip_racks
arg inload_instrument
for loading a pipette listed off-deck labware too soon, so analysis would fail thinking the tiprack to use was off-deck.This analysis error wasn't caught in PD because PD's
getNextTip
logic lists off-deck tipracks last. So you will use all your tips on deck first before running into the "tip is off deck" error. We needed the python to match this by also listing off-deck labware last.Test Plan and Hands on Testing
You can smoke test but also i added test coverage to test this. so just review the code!
Changelog
Risk assessment
low