pylabrobot.resources.opentrons.load.load_shared_opentrons_resource#

pylabrobot.resources.opentrons.load.load_shared_opentrons_resource(definition: str, name: str, version: int = 1) Plate | TipRack | TubeRack#

Load an Opentrons resource from the shared Opentrons resource library.

See Opentrons/opentrons.

Parameters:
  • definition (str) – name of the labware definition.

  • version (int) – version of the labware definition.

  • name (str) – desired name of the PyLabRobot Resource

Returns:

A Resource.

Raises:
  • ValueError – if the file is not a valid opentrons definition file.

  • UnknownResourceType – if the file is a valid opentrons definition file, but the resource type is not supported.

Return type:

Plate | TipRack | TubeRack

Examples

Load a tip rack:

>>> from pylabrobot.resources.opentrons import load_shared_opentrons_resource
>>> load_shared_opentrons_resource("opentrons_96_tiprack_labware", "96Standard")