DatasetKey

class lsst.pipe.base.quantum_graph_skeleton.DatasetKey(parent_dataset_type_name: str, data_id_values: tuple[DataIdValue, ...], is_task: ClassVar[Literal[False]] = False, is_prerequisite: ClassVar[Literal[False]] = False)

Bases: NamedTuple

Identifier type for dataset keys in a QuantumGraphSkeleton.

Attributes Summary

data_id_values

Data ID values of the dataset.

is_prerequisite

Alias for field number 3

is_task

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

parent_dataset_type_name

Name of the dataset type (never a component).

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 dataset.

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

is_prerequisite: ClassVar[Literal[False]]

Alias for field number 3

is_task: ClassVar[Literal[False]]

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

parent_dataset_type_name: str

Name of the dataset type (never a component).

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.