Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-kulkarni committed Jul 1, 2024
1 parent 48d6d10 commit 311b42c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/src/opentrons/protocol_api/instrument_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -2071,6 +2071,9 @@ def require_liquid(self, well: labware.Well) -> None:
:returns: None.
"""
if well is None:
raise WellDoesNotExistError

try:
self._core.find_liquid_level(well._core)
except Exception as e:
Expand All @@ -2082,6 +2085,9 @@ def get_liquid_height(self, well: labware.Well) -> float:
:returns: A float representing the height of the liquid.
"""
if well is None:
raise WellDoesNotExistError

try:
height = self._core.find_liquid_level(well._core)
return float(height)
Expand Down

0 comments on commit 311b42c

Please sign in to comment.