QuantaCluster¶
- class lsst.ctrl.bps.QuantaCluster(name, label, tags=None)¶
Bases:
object
Information about the cluster and Quanta belonging to it.
- Parameters:
- 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.
- 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.
- quantum_id
- Returns:
- cluster
QuantaCluster
Newly created cluster containing the given quantum.
- cluster