autosweep.data_types.Recipe#
- class autosweep.data_types.Recipe(recipe: dict)[source]#
-
Methods
__init__
(recipe)from_dict
(data)A class method to generate a class instance from a dict
read_json
(path)Create a class instance from a JSON file
tests
()Used to iterate over tests.
to_dict
(**kwargs)Used to turn the instance into a dictionary.
to_json
(path)Write the contents of the object instance to JSON in such a way that the classinstance can be re-generated.
Attributes
instruments
Returns the instruments needed to run this recipe.