PrerequisiteDatasetKey¶
- class lsst.pipe.base.quantum_graph_skeleton.PrerequisiteDatasetKey(parent_dataset_type_name: str, dataset_id_bytes: bytes, is_task: ClassVar[Literal[False]] = False, is_prerequisite: ClassVar[Literal[True]] = True)¶
Bases:
NamedTuple
Identifier type for prerequisite dataset keys in a
QuantumGraphSkeleton
.Unlike regular datasets, prerequisites are not actually required to come from a find-first search of
input_collections
, so we don’t want to assume that the same data ID implies the same dataset. Happily we also don’t need to search for them by data ID in the graph, so we can use the dataset ID (UUID) instead.Attributes Summary
Dataset ID (UUID) as raw bytes.
Alias for field number 3
Whether this node represents a quantum or task initialization rather than a dataset (always
False
).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
- is_prerequisite: ClassVar[Literal[True]]¶
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
).
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.