exa.common.sweep.util.convert_sweeps_to_list_of_tuples#
- convert_sweeps_to_list_of_tuples(sweeps)#
Validate sweeps and convert it to format accepted by the station control.
Converts a more lax sweep definition to a strict NdSweep. The sweeps themselves are the same, except single Sweep instances are turned into a ParallelSweep containing a single Sweep.
Verify that:
sweepselements are either Sweep or ParallelSweepParallelSweep elements are Sweep
ParallelSweep contains at least one element
ParallelSweep component Sweeps all have equal-length data