pylabrobot.resources.opentrons.load.load_opentrons_resource

pylabrobot.resources.opentrons.load.load_opentrons_resource#

pylabrobot.resources.opentrons.load.load_opentrons_resource(fn: str, name: str) Plate | TipRack | TubeRack#

Load an Opentrons resource from a file.

Parameters:
  • fn (str) – path to the file.

  • name (str) –

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_opentrons_resource
>>> load_opentron_resource("opentrons/definitions/2/96_standard.json", "96Standard")