-
Notifications
You must be signed in to change notification settings - Fork 179
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
feat(api, shared-data): make speed & distance pickUpTipConfigurations values keyed by tip count #14458
feat(api, shared-data): make speed & distance pickUpTipConfigurations values keyed by tip count #14458
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## edge #14458 +/- ##
=======================================
Coverage 67.77% 67.77%
=======================================
Files 2518 2518
Lines 71968 71970 +2
Branches 9244 9244
=======================================
+ Hits 48774 48778 +4
Misses 20990 20990
+ Partials 2204 2202 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Totally forgot about the schema v1 build scripts. Updating now |
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.
Code looks good, and I see you noticed the fairly cursed way we do mutable configurations, awesome.
It feels a little silly and error-prone to have three different maps with the same key rather than one map to objects with three members though. Can you either invert that (so it's like configByTipCount: { "1": { "current": 0.1, "distance": 10, "speed": 20}, }
) or add some verification to the python modals, or even just to the tests, to make sure that nobody forgets an entry in one of the three?
That is certainly a good idea. Will try the first method as it seems the most robust. |
Notwithstanding the changes discussed above, I tested this on a Flex and didn't notice anything out of the ordinary. I used the drop-tip wizard and whatever 96-channel protocol happened to already be on the robot. |
@sfoster1 On second thought, |
Awesome! Thanks @SyntaxColoring ! |
Tested on OT-2 and verified that:
|
…s values keyed by tip count (#14458) * pickUpTipConfigurations' speed and distance are now objects keyed by tip count * updated to speedByTipCount and distanceByTipCount in all pipette defs * updated schema v1 build script * updated mutable configs handlers * updated hardware_testing/helpers_ot3
…s values keyed by tip count (#14458) * pickUpTipConfigurations' speed and distance are now objects keyed by tip count * updated to speedByTipCount and distanceByTipCount in all pipette defs * updated schema v1 build script * updated mutable configs handlers * updated hardware_testing/helpers_ot3
Closes RSS-443
Overview
This PR looks big but it actually has only 2 real changes-
speed
anddistance
properties of a pipette'spickUpTipConfigurations
are now changed tospeedByTipCount
anddistanceByTipCount
. These values are now dictionaries keyed by number of tips being used for tip pickup.Test Plan
Changelog
speedByTipCount
&distanceByTipCount
propertiesReview requests
Risk assessment
High if I messed up pipette definition updates.