pylabrobot.liquid_handling.liquid_handler.LiquidHandler.use_channels#
- LiquidHandler.use_channels(channels: List[int])#
Temporarily use the specified channels as a default argument to
use_channels
.Examples
Use channel index 2 for all liquid handling operations inside the context:
>>> with lh.use_channels([2]): ... await lh.pick_up_tips(tip_rack["A1"]) ... await lh.aspirate(plate["A1"], 50) ... await lh.dispense(plate["A1"], 50)
This is equivalent to:
>>> await lh.pick_up_tips(tip_rack["A1"], use_channels=[2]) >>> await lh.aspirate(plate["A1"], 50, use_channels=[2]) >>> await lh.dispense(plate["A1"], 50, use_channels=[2])
Within the context manager, you can override the default channels by specifying the
use_channels
argument explicitly.