pylabrobot.resources.opentrons.load.load_opentrons_resource#

pylabrobot.resources.opentrons.load.load_opentrons_resource(fn: str, name: str) Union[pylabrobot.resources.plate.Plate, pylabrobot.resources.tip_rack.TipRack]#

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

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

Examples

Load a tip rack:

>>> from pylabrobot.resources.opentrons import load_opentrons_resource
>>> load_opentron_resource("opentrons/definitions/2/96_standard.json", "96Standard")