pylabrobot.resources.ResourceStack.load_from_json_file#

classmethod ResourceStack.load_from_json_file(json_file: str) typing_extensions.Self#

Loads resources from a JSON file.

Parameters

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

Return type

typing_extensions.Self

Examples

Loading a resource from a json file:

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