QuantumKey

class lsst.pipe.base.quantum_graph_skeleton.QuantumKey(task_label: str, data_id_values: tuple[DataIdValue, ...], is_task: ClassVar[Literal[True]] = True)

Bases: NamedTuple

Identifier type for quantum keys in a QuantumGraphSkeleton.

Attributes Summary

data_id_values

Data ID values of the quantum.

is_task

Whether this node represents a quantum or task initialization rather than a dataset (always True).

task_label

Label of the task in the pipeline.

Methods Summary

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes Documentation

data_id_values: tuple[DataIdValue, ...]

Data ID values of the quantum.

Note that keys are fixed given task_label, so using only the values here speeds up comparisons.

is_task: ClassVar[Literal[True]]

Whether this node represents a quantum or task initialization rather than a dataset (always True).

task_label: str

Label of the task in the pipeline.

Methods Documentation

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=sys.maxsize, /)

Return first index of value.

Raises ValueError if the value is not present.