Labware

Labware classes

class linq.labware.LabwareType(*, id: str, dimensions: LabwareDimensions | None = None, labware_dimension_offset: LabwareOffset = ..., max_idle_time: int | None = None)

A specific type of labware, specifying the dimensions of all labware of this type.

id: str

Unique ID for this labware type.

dimensions: LabwareDimensions | None

Labware type dimensions – DEPRECATED, will be removed in February 2025 release

labware_dimension_offset: LabwareOffset

Dimensional offsets for labware type.

class linq.labware.Labware(*, id: str, labware_type: LabwareType, starting_instrument: Instrument | None = None, starting_slot: int | None = None, starting_location: LabwareLocation | list[LabwareLocation] | None = None, total_units: int = 1, batch: int | None = None, description: str | None = None, barcode: str | None = None)

A single piece of labware.

id: str

Unique ID of this piece of labware.

labware_type: LabwareType

Labware type.

starting_instrument: Instrument | None

DEPRECATED, will be removed in February 2025 release

starting_slot: int | None

DEPRECATED, will be removed in February 2025 release

starting_location: LabwareLocation | list[LabwareLocation] | None

Location the labware is located in at the start of the workflow. Can be a single location or a list of locations. Option for None is to support deprecated starting_instrument and starting_slot. The field will not be optional in the next release.

total_units: int

The number of consumable ‘units’ in a single piece of labware. Does not affect the workflow if ‘units_consumed’ is not defined on any tasks.

batch: int | None

The batch that this labware belongs to. Leave as None for auto-assignment

description: str | None

Description.

barcode: str | None

Barcode (or None if labware has no barcode).

class linq.labware.LabwareDimensions(*, length: float, width: float, height: float)

Physical dimensions of a piece of labware.

length: float

Length in mm.

width: float

Width in mm.

height: float

Height in mm.

class linq.labware.LabwareLocation(*, instrument: Instrument, slot: int | SlotRange)

Location of a labware in an instrument.

instrument: Instrument

Instrument the labware is located in.

slot: int | SlotRange

Slot within the instrument the labware is located in.