Absorbance Plate Reader
AbsorbanceReaderContext ¶
An object representing a connected Absorbance Plate Reader Module.
It should not be instantiated directly; instead, it should be
created through ProtocolContext.load_module().
New in version 2.21
close_lid
v2.21
¶
Use the Flex Gripper to close the lid of the Absorbance Plate Reader.
You must call this method before initializing the reader, even if the reader was in the closed position at the start of the protocol.
initialize
v2.21
¶
Prepare the Absorbance Plate Reader to read a plate.
See Initialization for examples.
Parameters:
-
mode(ABSMeasureMode) – -
wavelengths(List[int]) –A list of wavelengths, in nm, to measure.
- In the default hardware configuration, each wavelength must be one of
450(blue),562(green),600(orange), or650(red). In custom hardware configurations, the module may accept other integers between350and1000. - The list must contain only one item when initializing a single measurement.
- The list can contain one to six items when initializing a multiple measurement.
reference_wavelength: An optional reference wavelength, in nm. If provided,
read()will read at the reference wavelength and then subtract the reference wavelength values from the measurement wavelength values. Can only be used with single measurements.
- In the default hardware configuration, each wavelength must be one of
load_labware ¶
load_labware(name, label=None, namespace=None, version=None, adapter=None, lid=None, *, adapter_namespace=None, adapter_version=None, lid_namespace=None, lid_version=None)
Load a labware onto the module using its load parameters.
The parameters of this function behave like those of
load_labware()
(which loads labware directly onto the deck). Note that the parameter
name here corresponds to load_name on the ProtocolContext
function.
Returns:
-
Labware–The initialized and loaded labware object.
New in version 2.1: The label, namespace, and version parameters.
New in version 2.26: The adapter_namespace, adapter_version,
lid_namespace, and lid_version parameters.
load_labware_by_name
v2.1
¶
Deprecated in version 2.0:
Use load_labware instead.
load_labware_from_definition
v2.0
¶
Load a labware onto the module using an inline definition.
Parameters:
-
definition(LabwareDefinition) –The labware definition.
-
label(str, default:None) –An optional special name to give the labware. If specified, this is the name the labware will appear as in the run log and the calibration view in the Opentrons app.
Returns:
-
Labware–The initialized and loaded labware object.
parent
property
v2.14
¶
The name of the slot the module is on.
On a Flex, this will be like "D1". On an OT-2, this will be like "1".
See Deck Slots.
read
v2.21
¶
Read a plate on the Absorbance Plate Reader.
This method always returns a dictionary of measurement data. It optionally will
save a CSV file of the results to the Flex filesystem, which you can access from
the Recent Protocol Runs screen in the Opentrons App. These files are only saved
if you specify export_filename.
In simulation, the values for each well key in the dictionary are set to zero, and no files are written.
Note
Avoid divide-by-zero errors when simulating and using the results of this
method later in the protocol. If you divide by any of the measurement
values, use is_simulating()
to use alternate dummy data or skip the division step.
Parameters:
-
export_filename(Optional[str], default:None) –An optional file basename. If provided, this method will write a CSV file for each measurement in the read operation. File names will use the value of this parameter, the measurement wavelength supplied in
initialize(), and a.csvextension. For example, when reading at wavelengths 450 and 562 withexport_filename="my_data", there will be two output files:my_data_450.csvandmy_data_562.csv.See CSV Data for information on working with these CSV files.
Returns:
-
Dict[int, Dict[str, float]]–A dictionary of wavelengths to dictionary of values ordered by well name.