pylabrobot.resources.Resource.load_from_json_file

pylabrobot.resources.Resource.load_from_json_file#

classmethod Resource.load_from_json_file(json_file: str) Self#

Loads resources from a JSON file.

Parameters:

json_file (str) – The path to the JSON file.

Return type:

Self

Examples

Loading a resource from a json file:

>>> from pylabrobot.resources import Resource
>>> resource = Resource.deserialize("my_resource.json")