autosweep.sweep.to_json#
- autosweep.sweep.to_json(sweeps: dict, path: pathlib.Path | str, metadata: Optional[dict] = None, dut_info: Optional[DUTInfo] = None) None [source]#
Converts a set of raw data to JSON format. Useful for saving raw data to file used in scripting but also as part of the TestExec tests.
- Parameters:
sweeps (dict[str, Sweep]) – a collection of sweeps to write to a JSON file
path (str or pathlib.Path) – The filename and path to write to
metadata (dict, optional) – Any additional file-wide metadata you want to include
dut_info (autosweep.data_types.metadata.DUTInfo, optional) – The DUT info for this dataset
- Returns:
None