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.
add_quantum_node
(quantum_node)Add a quantumNode to this cluster.
from_quantum_node
(quantum_node, template)Create single quantum cluster from given quantum node.
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
lsst.pipe.base.NodeId
ID for quantumNode to be added to cluster.
- task_label
str
Task label for quantumNode to be added to cluster.
- node_id
- add_quantum_node(quantum_node)¶
Add a quantumNode to this cluster.
- Parameters:
- quantum_node
lsst.pipe.base.QuantumNode
- quantum_node
- classmethod from_quantum_node(quantum_node, template)¶
Create single quantum cluster from given quantum node.
- Parameters:
- quantum_node
lsst.pipe.base.QuantumNode
QuantumNode for which to make into a single quantum cluster.
- template
str
Template for creating cluster name.
- quantum_node
- Returns:
- cluster
QuantaCluster
Newly created cluster containing the given quantum.
- cluster