Skip to content
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

Merged
merged 12 commits into from
Jun 26, 2024

Conversation

aaron-kulkarni
Copy link
Collaborator

@aaron-kulkarni aaron-kulkarni commented Jun 21, 2024

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

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
@aaron-kulkarni aaron-kulkarni requested a review from a team as a code owner June 21, 2024 17:29
@aaron-kulkarni aaron-kulkarni marked this pull request as draft June 21, 2024 17:38
@aaron-kulkarni aaron-kulkarni marked this pull request as ready for review June 24, 2024 13:26
Copy link
Member

@sfoster1 sfoster1 left a 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""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 []
Copy link
Member

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?

@aaron-kulkarni aaron-kulkarni requested a review from a team as a code owner June 25, 2024 17:33
@aaron-kulkarni aaron-kulkarni marked this pull request as draft June 25, 2024 17:37
@Opentrons Opentrons deleted a comment from github-actions bot Jun 26, 2024
@aaron-kulkarni aaron-kulkarni marked this pull request as ready for review June 26, 2024 16:06
@aaron-kulkarni aaron-kulkarni requested a review from a team as a code owner June 26, 2024 16:06
@aaron-kulkarni aaron-kulkarni requested review from shlokamin and removed request for a team June 26, 2024 16:06
@aaron-kulkarni aaron-kulkarni marked this pull request as draft June 26, 2024 18:25
@aaron-kulkarni aaron-kulkarni marked this pull request as ready for review June 26, 2024 19:41
Copy link
Contributor

@ryanthecoder ryanthecoder left a 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

@aaron-kulkarni aaron-kulkarni merged commit abf7f02 into edge Jun 26, 2024
41 of 42 checks passed
@aaron-kulkarni aaron-kulkarni deleted the exec-576-max-travel-distance-update branch July 2, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants