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

refactor(api): Remove redundant tip length state #16450

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

SyntaxColoring
Copy link
Contributor

@SyntaxColoring SyntaxColoring commented Oct 9, 2024

Overview

PipetteState and TipState were both storing the length of the pipette's currently-attached tip. I think that duplication was accidental. The TipState one was only used in one place, so this deletes that in favor of the PipetteState one.

Goes towards EXEC-758 by giving us one less thing to port.

Review requests

As far as I can tell, these did refer to exactly the same thing—the effective tip length (total length minus overlap). But double-check me.

Test plan

Because this is only affects the VirtualGantryMover, used during protocol analysis, I think we can lean on analysis snapshot tests.

Risk assessment

Low.

@SyntaxColoring SyntaxColoring requested a review from a team as a code owner October 9, 2024 20:58
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.

Nice, should be good!

Copy link
Contributor

@jbleon95 jbleon95 left a comment

Choose a reason for hiding this comment

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

Looks good, I can't recall if this was accidental or a decision made to isolate the tip length for that specific get_tip_length function, but either way this looks cleaner and reduces duplication.

@SyntaxColoring SyntaxColoring merged commit 6012297 into edge Oct 10, 2024
27 checks passed
@SyntaxColoring SyntaxColoring deleted the redundant_tip_length branch October 10, 2024 14:33
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