Skip to content

laboneq.workflow.tasks.collect_experiment_results

This module provides tasks for collecting several experiment results.

append_result(results, result)

Appends result to results.

Parameters:

Name Type Description Default
results list[Results]

list of Results instances

required
result Results

instance of Results to be appended to results

required

combine_results(results)

Combines the results in results into a single Results instance.

The acquired_results, neartime_callback_results and execution_errors are combined as follows:

  • acquired_results and neartime_callback_results are combined using a dictionary update so that later results in the list will override earlier results if they share identical handles.

Note that because acquired_results and neartime_callback_results are accessible via the paths of their handles on the combined Result, combining results with incompatible paths with raise an exception.

For example, it is an error to combine results with the handles a/b/c and a/b, i.e. where one handle is a path prefix of another.

  • execution_errors are concatenated into a single list.

Other result attributes are not combined and are not present on the combined result.

Parameters:

Name Type Description Default
results list[Results]

List of Results instances to be combined into a single instance of Results.

required

Returns:

Type Description
Results

An instance of Results with all the data in the individual

Results

Results instances combined.