6.5.3. qumada.utils.generate_sweeps

qumada.utils.generate_sweeps.generate_sweep(start, stop, num_points, backsweep=False)[source]

Creates a linear array with equally spaced setpoints ranging from start to stop. If include_backwars is set True, the array will contain twice as much setpoints going from start to stop and back down to start again.

qumada.utils.generate_sweeps.parse_code_from_json(parameters)[source]

executes simple chunks of python code in strings starting with _

qumada.utils.generate_sweeps.replace_parameter_settings(parameters, old_val, new_value)[source]

Replaces parameters based on their values with other value. Can be used to pass setpoint arrays to parameter-dicts created from json files without having to change the values by hand everytime.

qumada.utils.generate_sweeps.update_parameter_settings(parameters, old_val, new_value)[source]

Replaces parameters based on their values with other value. Can be used to pass setpoint arrays to parameter-dicts created from json files without having to change the values by hand everytime. Does not modify the original dict, but return a modified deep copy.