QuantumInfo#

class lsst.pipe.base.quantum_graph.QuantumInfo#

Bases: TypedDict

A typed dictionary that annotates the attributes of the NetworkX graph node data for a quantum.

Since NetworkX types are not generic over their node mapping type, this has to be used explicitly, e.g.:

node_data: QuantumInfo = xgraph.nodes[quantum_id]

where xgraph can be either BaseQuantumGraph.quantum_only_xgraph or BaseQuantumGraph.bipartite_xgraph.