Skip to content

Well (inherits from dataclass)

Description

Represents a single well within a labware item. Each well has spatial coordinates, dimensions, liquid capacity, and optional offsets for precise positioning during laboratory automation operations.

Constructor

python
Well(
    name: str,
    depth: float,
    totalLiquidVolume: float,
    shape: str,
    diameter: float = None,
    xDimension: float = None,
    yDimension: float = None,
    x: float,
    y: float,
    z: float,
    offset: Tuple[float] = None,
    slot: int = None,
    has_tip: bool = False,
    clean_tip: bool = False,
    labware_name: str = None,
)

Initializes a Well with its geometry, coordinates, optional offset, and tip presence attributes.

Properties

PropertyTypeDescription
namestrName of the well (e.g., "A1", "B5").
depthfloatDepth of the well in mm.
totalLiquidVolumefloatMaximum liquid capacity of the well.
shapestrShape of the well (e.g., cylindrical, rectangular).
diameterfloatDiameter of the well (optional for cylindrical wells).
xDimensionfloatX dimension (width) for rectangular wells.
yDimensionfloatY dimension (depth) for rectangular wells.
x, y, zfloatCoordinates of the well relative to its deck slot.
offsetTuple[float]Manual offset applied to coordinates (optional).
slotintSlot number where the well is located (optional).
has_tipboolWhether the well currently has a tip loaded (for tip racks).
clean_tipboolWhether the tip is clean (for tip reuse logic).
labware_namestrName of the associated labware.

Methods

MethodReturnsDescription
apply_offset(offset: Tuple[float])NoneApplies a manual (x, y, [z]) offset to the well coordinates.
top_ (property)floatReturns the absolute z-coordinate of the well top.
bottom_ (property)floatReturns the absolute z-coordinate of the well bottom.
top(z: float)LocationReturns a Location object offset z mm relative to the well top.
bottom(z: float, check: bool = False)LocationReturns a Location object offset z mm relative to the well bottom; enforces positive z if check is False.
set_has_tip(value: bool)NoneSets the has_tip attribute for the well.
set_clean_tip(value: bool)NoneSets the clean_tip attribute for the well.
__repr__()strString representation showing well name, slot, and coordinates.

Short Example

python
# Example usage of a Well
well_a1 = Well(
    name="A1",
    depth=10.0,
    totalLiquidVolume=360.0,
    shape="circular",
    x=0.0,
    y=0.0,
    z=0.0
)

# Apply an offset
well_a1.apply_offset((10.0, 5.0))

# Get a location 2mm above the bottom
location = well_a1.bottom(2.0)
print(location)

Important Notes

  • Coordinate setters (x, y, z) allow dynamic updating of positions.
  • apply_offset shifts the well’s entire coordinate space, typically used after loading onto a deck slot.
  • Always verify that bottom z-offsets are positive unless explicitly bypassed using check=True.
  • The Location class is returned by movement-related methods (top, bottom) to represent 3D points plus context.

Pre-release documentation · Internal research use only · Not authorized for redistribution.