QuantaCluster#
- class lsst.ctrl.bps.QuantaCluster(name, label, tags=None)#
Bases:
objectInformation about the cluster and Quanta belonging to it.
Parameters#
- name
str Lookup key (logical file name) of file/directory. Must be unique within ClusteredQuantumGraph.
- label
str Value used to group clusters.
- tags
dict[str,Any], optional Arbitrary key/value pairs for the cluster.
Raises#
- ValueError
Raised if invalid name (e.g., name contains /).
Attributes Summary
Quantum graph NodeIds corresponding to this cluster.
Counts of Quanta per taskDef.label in this cluster.
Methods Summary
add_quantum(node_id, task_label)Add a quantumNode to this cluster.
from_quantum_info(quantum_id, quantum_info, ...)Create single quantum cluster from the given quantum information.
Attributes Documentation
- qgraph_node_ids#
Quantum graph NodeIds corresponding to this cluster.
- quanta_counts#
Counts of Quanta per taskDef.label in this cluster.
Methods Documentation
- add_quantum(node_id, task_label)#
Add a quantumNode to this cluster.
Parameters#
- node_id
uuid.UUID ID for quantumNode to be added to cluster.
- task_label
str Task label for quantumNode to be added to cluster.
- node_id
- classmethod from_quantum_info(quantum_id: UUID, quantum_info: QuantumInfo, template: str) QuantaCluster#
Create single quantum cluster from the given quantum information.
Parameters#
- quantum_id
uuid.UUID ID of the quantum.
- quantum_info
lsst.pipe.base.quantum_graph.QuantumInfo Dictionary of additional information about the quantum.
- template
str Template for creating cluster name.
Returns#
- cluster
QuantaCluster Newly created cluster containing the given quantum.
- quantum_id
- name