Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoegenburg committed Sep 19, 2024
1 parent dd74c58 commit e210544
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions api/src/opentrons/protocol_engine/state/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,14 +435,12 @@ def get_well_position(
elif well_location.origin == WellOrigin.CENTER:
offset = offset.copy(update={"z": offset.z + well_depth / 2.0})
elif well_location.origin == WellOrigin.MENISCUS:
liquid_height = self._wells.get_last_measured_liquid_height(
starting_liquid_height = self._wells.get_last_measured_liquid_height(
labware_id, well_name
)
if liquid_height is not None:
# use operation_volume
if operation_volume:
pass
offset = offset.copy(update={"z": offset.z + liquid_height})
if starting_liquid_height is not None:
height_after_operation = self.get_ending_height(starting_liquid_height, operation_volume)
offset = offset.copy(update={"z": offset.z + height_after_operation})
else:
raise errors.LiquidHeightUnknownError(
"Must liquid probe before specifying WellOrigin.MENISCUS."
Expand Down

0 comments on commit e210544

Please sign in to comment.