pylabrobot.resources.volume_tracker.VolumeTracker#

class pylabrobot.resources.volume_tracker.VolumeTracker(max_volume: float, liquids: List[Tuple[Liquid | None, float]] | None = None, pending_liquids: List[Tuple[Liquid | None, float]] | None = None, liquid_history: set | None = None)#

Bases: object

A volume tracker tracks operations that change the volume in a container and raises errors if the volume operations are invalid.

Attributes

Methods

__init__(max_volume[, liquids, ...])

add_liquid(liquid, volume)

Add liquid to the container.

clear_cross_contamination_history()

Resets the liquid_history for cross contamination tracking.

commit()

Commit the pending operations.

disable()

Disable the volume tracker.

disable_cross_contamination_tracking()

Disable the cross contamination tracker.

enable()

Enable the volume tracker.

enable_cross_contamination_tracking()

Enable the cross contamination tracker.

get_free_volume()

Get the free volume of the container.

get_liquids(top_volume)

Get the liquids in the top top_volume uL

get_used_volume()

Get the used volume of the container.

load_state(state)

Load the state of the volume tracker.

register_callback(callback)

remove_liquid(volume)

Remove liquid from the container.

rollback()

Rollback the pending operations.

serialize()

Serialize the volume tracker.

set_liquids(liquids)

Set the liquids in the container.

Parameters: