pylabrobot.opentrons.OT2.load_module#

async OT2.load_module(module: OT2Module) → str#

Load a module into the run at the slot it stands in, and return its id there.

A module this robot loaded into the current run already is left as it is. With several modules of the model connected, the robot chooses the one it loads for the slot; the module’s serial number then says which it took.

Parameters:

module (OT2Module) – a module standing directly in a deck slot.

Returns:

The module’s id in the run.

Raises:
  • ValueError – If the module does not stand directly in a deck slot.

  • OT2ModuleMismatchError – If the module was given a serial number and the robot loaded another. The module is then not bound.

Return type:

str