pylabrobot.resources.volume_tracker.ContainerVolumeTracker
pylabrobot.resources.volume_tracker.ContainerVolumeTracker#
- class pylabrobot.resources.volume_tracker.ContainerVolumeTracker(max_volume: float)#
Bases:
pylabrobot.resources.volume_tracker.VolumeTracker
A container volume tracker tracks and validates volume operations for a single container.
Attributes
The past operations.
Methods
__init__
(max_volume)clear
()Clear the history.
commit
()Commit the pending operations.
disable
()Disable the volume tracker.
enable
()Enable the volume tracker.
Get the free volume of the container.
Get the used volume of the container.
Update the pending state with the operation.
handle_dispense
(op)Update the pending state with the operation.
queue_aspiration
(op)Check if the operation is valid given the current state.
queue_dispense
(op)Check if the operation is valid given the current state.
rollback
()Rollback the pending operations.
set_used_volume
(volume)Set the volume of the container.
- Parameters
max_volume (float) –