pylabrobot.resources.TubeRack.set_tube_liquids#

TubeRack.set_tube_liquids(liquids: List[List[Tuple[Liquid | None, int | float]]] | List[Tuple[Liquid | None, int | float]] | Tuple[Liquid | None, int | float]) None#

Update the liquid in the volume tracker for each tube in the rack.

Parameters:

liquids (List[List[Tuple[Liquid | None, int | float]]] | List[Tuple[Liquid | None, int | float]] | Tuple[Liquid | None, int | float]) – A list of liquids, one for each tube in the rack. The list can be a list of lists, where each inner list contains the liquids for each tube in a column. If a single tuple is given, the volume is assumed to be the same for all tubes. Liquids are in uL.

Raises:

ValueError – If the number of liquids does not match the number of tubes in the rack.

Return type:

None

Example

Set the volume of each tube in a 4x6 rack to 1000 uL.

>>> rack = TubeRack("rack", 127.76, 85.48, 14.5, num_items_x=6, num_items_y=4)
>>> rack.set_tube_liquids((Liquid.WATER, 1000))