Skip to content

Commit d06b5d7

Browse files
committed
don't check surface_following_distance when lld_mode is not OFF
1 parent b1a4800 commit d06b5d7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pylabrobot/liquid_handling/backends/hamilton/STAR_backend.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,9 +1996,13 @@ async def aspirate(
19961996
surface_following_distance = _fill_in_defaults(surface_following_distance, [0.0] * n)
19971997

19981998
# check if the surface_following_distance would fall below the minimum height
1999+
# if lld is enabled, we expect to find liquid above the well bottom so we don't need to raise an error
19992000
if any(
2000-
well_bottoms[i] + liquid_heights[i] - surface_following_distance[i] - minimum_height[i]
2001-
< -1e-6
2001+
(
2002+
well_bottoms[i] + liquid_heights[i] - surface_following_distance[i] - minimum_height[i]
2003+
< -1e-6
2004+
)
2005+
and lld_mode[i] == STARBackend.LLDMode.OFF
20022006
for i in range(n)
20032007
):
20042008
raise ValueError(

0 commit comments

Comments
 (0)