6.5.11. qumada.utils.utils

qumada.utils.utils.flatten_array(l)[source]

Flattens nested lists and arrays, returns flattened list

Return type:

list

qumada.utils.utils.naming_helper(measurement_script, default_name='Measurement')[source]

Handles the naming of measurements for measurement scripts. Uses the available name with the highest priority. Priorities:

Metadata object in measurement script measurement_script.measurement_name default_name

If measurement_script.auto_naming is True, the default name is used always! Changes measurement_script.measurement_name to highest priority name and returns it. If metadata object is available the name in the metadata object is also changed!