Skip to content

Commit 93f482d

Browse files
committed
fix STARBackend.drop_tips96
1 parent da58fde commit 93f482d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pylabrobot/liquid_handling/backends/hamilton/STAR_backend.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2228,7 +2228,9 @@ async def drop_tips96(
22282228
if isinstance(drop.resource, TipRack):
22292229
tip_spot_a1 = drop.resource.get_item("A1")
22302230
position = tip_spot_a1.get_absolute_location() + tip_spot_a1.center() + drop.offset
2231-
position.z = tip_spot_a1.parent.get_absolute_location().z + 1.45
2231+
tip_rack = tip_spot_a1.parent
2232+
assert tip_rack is not None
2233+
position.z = tip_rack.get_absolute_location().z + 1.45
22322234
# This should be the case for all normal hamilton tip carriers + racks
22332235
# In the future, we might want to make this more flexible
22342236
assert abs(position.z - 216.4) < 1e-6, f"z position must be 216.4, got {position.z}"

0 commit comments

Comments
 (0)