Wells and Liquids
Well ¶
The Well class represents a single well in a Labware.
It provides parameters and functions for three major uses:
-
Calculating positions relative to the well. See Position Relative to Labware for details.
-
Returning well measurements. See Well Dimensions for details.
-
Specifying what liquid should be in the well at the beginning of a protocol. See Labeling Liquids in Labware for details.
bottom
v2.0
¶
center
v2.0
¶
depth
property
v2.9
¶
The depth, in mm, of a well along the z-axis, from the very top of the well to the very bottom.
diameter
property
v2.0
¶
The diameter, in mm, of a circular well. Returns None
if the well is not circular.
display_name
property
¶
A human-readable name for the well, including labware and deck location.
For example, "A1 of Corning 96 Well Plate 360 µL Flat on slot D1". Run log
entries use this format for identifying wells. See
commands().
estimate_liquid_height_after_pipetting
v2.21
¶
Check the height of the liquid within a well.
Returns:
-
LiquidTrackingType–The height, in mm, of the liquid from the deck.
Note
This is intended for Opentrons internal use only and is not a guaranteed API.
from_center_cartesian
v2.8
¶
Specifies a Point based on fractions of the
distance from the center of the well to the edge along each axis.
For example, from_center_cartesian(0, 0, 0.5) specifies a point at the
well's center on the x- and y-axis, and half of the distance from the center of
the well to its top along the z-axis. To move the pipette to that location,
construct a Location relative to the same well:
location = types.Location(
plate["A1"].from_center_cartesian(0, 0, 0.5), plate["A1"]
)
pipette.move_to(location)
See Points and Locations for more information.
Parameters:
-
x(float) –The fraction of the distance from the well's center to its edge along the x-axis. Negative values are to the left, and positive values are to the right.
-
y(float) –The fraction of the distance from the well's center to its edge along the y-axis. Negative values are to the front, and positive values are to the back.
-
z(float) –The fraction of the distance from the well's center to its edge along the x-axis. Negative values are down, and positive values are up.
Returns:
Note
Even if the absolute values of x, y, and z are all less
than 1, a location constructed from the well and the result of
from_center_cartesian may be outside of the physical well. For example,
from_center_cartesian(0.9, 0.9, 0) would be outside of a cylindrical
well, but inside a square well.
New in version 2.8
has_tip
property
v2.0
writable
¶
Whether this well contains an unused tip.
From API v2.2 on:
-
Returns
Falseif: -
the well has no tip present, or
-
the well has a tip that's been used by the protocol previously
-
Returns
Trueif the well has an unused tip.
Before API v2.2:
- Returns
Trueas long as the well has a tip, even if it is used.
Always False if the parent labware isn't a tip rack.
New in version 2.2
height_from_volume
v2.24
¶
Return the height in a well corresponding to a given volume.
length
property
v2.9
¶
The length, in mm, of a rectangular well along the x-axis (left to right).
Returns None if the well is not rectangular.
load_liquid
v2.14
¶
Load a liquid into a well.
Parameters:
-
liquid(Liquid) –The liquid to load into the well.
-
volume(float) –The volume of liquid to load, in µL.
Deprecated in version 2.22: Use
Labware.load_liquid(),
Labware.load_liquid_by_well(),
or Labware.load_empty()
instead.
max_volume
property
¶
The maximum volume, in µL, that the well can hold.
This amount is set by the JSON labware definition, specifically the totalLiquidVolume property of the particular well.
meniscus
v2.21
¶
Parameters:
-
z(float, default:0.0) –An offset on the z-axis, in mm. Positive offsets are higher and negative offsets are lower.
-
target(str, default:'end') –The relative position of the liquid meniscus inside the well to target when performing a liquid handling operation.
Returns:
top
v2.0
¶
volume_from_height
v2.24
¶
Return the volume contained in a well at any height.
well_name
property
v2.7
¶
A string representing the well's coordinates.
For example, "A1" or "H12".
The format of strings that this property returns is the same format as the key for accessing wells in a dictionary.
width
property
v2.9
¶
The width, in mm, of a rectangular well along the y-axis (front to back).
Returns None if the well is not rectangular.
Liquid
dataclass
¶
A liquid to load into a well.
Attributes:
-
name(str) –A human-readable name for the liquid.
-
description(Optional[str]) –An optional description.
-
display_color(Optional[str]) –An optional display color for the liquid.
New in version 2.14
LiquidClass
dataclass
¶
A data class that contains properties of a specific class of liquids.