pylabrobot.liquid_handling.liquid_handler.LiquidHandler.probe_tip_inventory#

async LiquidHandler.probe_tip_inventory(tip_spots: List[TipSpot], probing_fn: Callable[[List[TipSpot], List[int] | None], Awaitable[Dict[str, bool]]] | None = None, use_channels: List[int] | None = None) Dict[str, bool]#

Probe the presence of tips in multiple tip spots.

The provided probing_fn is used for probing batches of tip spots. The default uses probe_tip_presence_via_pickup().

Examples

Probe all tip spots in one or more tip racks.

>>> import pylabrobot.resources.functional as F
>>> spots = F.get_all_tip_spots([tip_rack_1, tip_rack_2])
>>> presence = await lh.probe_tip_inventory(spots)
Parameters:
  • tip_spots (List[TipSpot]) – Tip spots to probe for presence of a tip.

  • probing_fn (Callable[[List[TipSpot], List[int] | None], Awaitable[Dict[str, bool]]] | None) – Function used to probe a batch of tip spots. Must accept tip_spots and use_channels and return a mapping of tip spot names to boolean flags.

  • use_channels (List[int] | None)

Returns:

Mapping from tip spot names to whether a tip is present.

Return type:

Dict[str, bool]