Skip to content

Commit bc9f2b2

Browse files
committed
fix dispense96 without volume tracking
1 parent 7c59632 commit bc9f2b2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pylabrobot/liquid_handling/liquid_handler.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,9 +1772,13 @@ async def dispense96(
17721772
for well, channel in zip(containers, self.head96.values()):
17731773
# even if the volume tracker is disabled, a liquid (None, volume) is added to the list
17741774
# during the aspiration command
1775-
liquids = channel.get_tip().tracker.remove_liquid(volume=volume)
1776-
reversed_liquids = list(reversed(liquids))
1777-
all_liquids.append(reversed_liquids)
1775+
if channel.get_tip().tracker.is_disabled or not does_volume_tracking():
1776+
reversed_liquids = [(None, volume)]
1777+
all_liquids.append(reversed_liquids)
1778+
else:
1779+
liquids = channel.get_tip().tracker.remove_liquid(volume=volume)
1780+
reversed_liquids = list(reversed(liquids))
1781+
all_liquids.append(reversed_liquids)
17781782

17791783
if not well.tracker.is_disabled and does_volume_tracking():
17801784
for liquid, vol in reversed_liquids:

0 commit comments

Comments
 (0)