DatasetInfo#

class lsst.pipe.base.quantum_graph.DatasetInfo#

Bases: TypedDict

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

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

node_data: DatasetInfo = xgraph.nodes[dataset_id]

where xgraph is from the BaseQuantumGraph.bipartite_xgraph property.