laboneq.workflow.tasks.collect_experiment_results
¶
This module provides tasks for collecting several experiment results.
append_result(results, result)
¶
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_resultsandneartime_callback_resultsare 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_errorsare 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. |