pylabrobot.resources.opentrons.load.load_shared_opentrons_resource#

pylabrobot.resources.opentrons.load.load_shared_opentrons_resource(definition: str, name: str, version: int = 1) Union[pylabrobot.resources.plate.Plate, pylabrobot.resources.tip_rack.TipRack]#

Load an Opentrons resource from the shared Opentrons resource library.

See https://github.com/Opentrons/opentrons/tree/edge/shared-data.

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

Union[pylabrobot.resources.plate.Plate, pylabrobot.resources.tip_rack.TipRack]

Examples

Load a tip rack:

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