Skip to content

Commit 6f02bbd

Browse files
committed
allow dispensing96 without aspiration96 when volume tracking disabled
1 parent db1a84f commit 6f02bbd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pylabrobot/liquid_handling/liquid_handler.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,12 @@ async def dispense96(
19391939

19401940
# even if the volume tracker is disabled, a liquid (None, volume) is added to the list
19411941
# during the aspiration command
1942-
liquids = tip.tracker.remove_liquid(volume=volume)
1942+
liquids: List[Tuple[Optional[Liquid], float]]
1943+
if tip.tracker.is_disabled or not does_volume_tracking():
1944+
liquids = [(None, volume)]
1945+
all_liquids.append(liquids)
1946+
else:
1947+
liquids = tip.tracker.remove_liquid(volume=volume)
19431948
reversed_liquids = list(reversed(liquids))
19441949
all_liquids.append(reversed_liquids)
19451950

0 commit comments

Comments
 (0)