-
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): change liquid_probe to respect min well height #15488
Conversation
Add logic to liquid_probe_in_place that will not go to the very bottom of the well, but stop slightly above it(as specified by the well's minimum height) fix EXEC-576
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.
Couple small issues, but the big one is: this needs testing. The state getter should have tests that make sure the right thing is returned in all 5 of the optional cases (no info, key but no values, one height requirement, full height requirement).
@@ -413,6 +413,37 @@ def get_should_center_pipette_on_target_well(self, labware_id: str) -> bool: | |||
or len(self.get_definition(labware_id).wells) >= 96 | |||
) | |||
|
|||
def get_well_min_height(self, labware_id: str, well_name: str) -> float: | |||
"""Get's the minimum distance that a liquid probe must stop away from the bottom of a well. |
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.
"""Get's the minimum distance that a liquid probe must stop away from the bottom of a well. | |
"""Gets the minimum distance that a liquid probe must stop away from the bottom of a well. |
return float(entry["value"]) | ||
if ( | ||
entry["applicableWells"] == [] | ||
): # A "custom" default value will have "applicableWells" set to [] |
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.
will it? or will it have applicableWells
set to a list of all the wells?
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 Think this looks good
Add logic to liquid_probe_in_place that will not go to the very bottom of the well, but stop
slightly above it(as specified by the well's minimum height)
fix EXEC-576
Overview
Test Plan
Changelog
Review requests
Risk assessment