Skip to content

laboneq.workflow.taskview

A module that defines a view object for workflow tasks.

TaskView(tasks=None)

Bases: Sequence

A view of tasks.

This class provides a view into tasks.

Parameters:

Name Type Description Default
tasks list[TaskResult | WorkflowResult] | None

List of tasks.

None

The class is a Sequence of tasks, however item lookup is modified to support the following cases:

- Lookup by index and slicing
- Lookup by name (string)
- Lookup by name and slicing

unique()

Return unique names of the tasks.