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

fix(hardware-testing): 96ch diagnostics tip presence polarity #14324

Merged

Conversation

andySigler
Copy link
Contributor

Overview

Polarity when reading 96ch tip-presence sensor was switched at some point, and so the production script must also switch to match it.

Test Plan

Changelog

Review requests

Risk assessment

@andySigler andySigler requested a review from a team as a code owner January 17, 2024 14:43
@@ -82,14 +82,14 @@ async def run(api: OT3API, report: CSVReport, section: str) -> None:
slot_5 = helpers_ot3.get_slot_calibration_square_position_ot3(5)
home_pos = await api.gantry_position(OT3Mount.LEFT)
await api.move_to(OT3Mount.LEFT, slot_5._replace(z=home_pos.z))
for expected_state in [False, True]:
for expected_state in [True, False]:
Copy link
Member

Choose a reason for hiding this comment

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

Wait if you switch this order but also switch the else/if order below this doesn't really do anything right? You're still expecting it to be False with no tips (but now that's second) and True with tips (but now that's first)

Copy link
Contributor

Choose a reason for hiding this comment

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

but actually, the responds of "get tip status" change, so the results will be different, I want to do the same action to keep the SOP same.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

looks correct to me @sfoster1 . We are now first expecting True, and when it is true that means there are no tips. The ordering of the if/else is arbitrary

Copy link
Member

Choose a reason for hiding this comment

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

Oh. Right. Sorry

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.

Looks great to me!

@@ -82,14 +82,14 @@ async def run(api: OT3API, report: CSVReport, section: str) -> None:
slot_5 = helpers_ot3.get_slot_calibration_square_position_ot3(5)
home_pos = await api.gantry_position(OT3Mount.LEFT)
await api.move_to(OT3Mount.LEFT, slot_5._replace(z=home_pos.z))
for expected_state in [False, True]:
for expected_state in [True, False]:
Copy link
Member

Choose a reason for hiding this comment

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

Oh. Right. Sorry

@andySigler andySigler merged commit 682c57a into edge Jan 29, 2024
6 checks passed
@andySigler andySigler deleted the fix-hardware-testing-96ch-diagnostics-tip-presence-polarity branch January 29, 2024 14:31
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.

3 participants