Skip to content

fix(api): Estimating volume when liquid height is zero should return zero not error#17877

Merged
andySigler merged 2 commits into
edgefrom
fix-api-frustrum-helper-find-volume-at-bottom-or-top
Mar 27, 2025
Merged

fix(api): Estimating volume when liquid height is zero should return zero not error#17877
andySigler merged 2 commits into
edgefrom
fix-api-frustrum-helper-find-volume-at-bottom-or-top

Conversation

@andySigler
Copy link
Copy Markdown
Contributor

@andySigler andySigler commented Mar 25, 2025

Overview

As written before, the _find_volume_in_partial_frustum function would raise an error if the target_height equaled the top or bottom of any frustum. For example, 0.0 in my case, because I was getting this error during my protocol run:

opentrons.protocol_engine.errors.exceptions.InvalidLiquidHeightFound: Error 4000 GENERAL_ERROR
(InvalidLiquidHeightFound): Unable to find volume at given well-height 0.0.

Test Plan and Hands on Testing

Changelog

Review requests

Risk assessment

@andySigler andySigler requested a review from a team as a code owner March 25, 2025 17:19
Copy link
Copy Markdown
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.

Add a test please! Looks like a good fix though.

Copy link
Copy Markdown
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 good to me! Thank you!

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.

2 participants