exa.common.sweep.database_serialization.decode_and_validate_sweeps

exa.common.sweep.database_serialization.decode_and_validate_sweeps#

decode_and_validate_sweeps(sweeps_json)#

Decodes and validates json string of list of Sweeps and tuples of Sweeps.

Parameters:

sweeps_json (str) – json string of nested structure of Sweep objects

Returns:

list of sweeps and tuples of sweeps

Raises:

ValueError if decoded result is not expected return type

Return type:

list[Sweep | tuple[Sweep, …]]