BaseQuantumGraph#

class lsst.pipe.base.quantum_graph.BaseQuantumGraph(header: HeaderModel, pipeline_graph: PipelineGraph)#

Bases: ABC

An abstract base for quantum graphs.

Parameters#

headerHeaderModel

Structured metadata for the graph.

pipeline_graphpipeline_graph.PipelineGraph

Graph of tasks and dataset types. May contain a superset of the tasks and dataset types that actually have quanta and datasets in the quantum graph.

Attributes Summary

bipartite_xgraph

A directed acyclic graph with quantum and dataset nodes.

datasets_by_type

A nested mapping of all datasets, keyed first by dataset type name and then by data ID.

quanta_by_task

A nested mapping of all quanta, keyed first by task name and then by data ID.

quantum_only_xgraph

A directed acyclic graph with quanta as nodes and datasets elided.

Attributes Documentation

bipartite_xgraph#

A directed acyclic graph with quantum and dataset nodes.

Notes#

Partial loads may not fully populate this graph, but it can always be accessed.

Node state dictionaries are described by the QuantumInfo and DatasetInfo types (or a subtypes thereof). Edges have state dictionaries described by BipartiteEdgeInfo.

The returned object is a read-only view of an internal one.

datasets_by_type#

A nested mapping of all datasets, keyed first by dataset type name and then by data ID.

Notes#

Partial loads may not fully populate this mapping, but it can always be accessed.

The returned object may be an internal dictionary; as the type annotation indicates, it should not be modified in place.

quanta_by_task#

A nested mapping of all quanta, keyed first by task name and then by data ID.

Notes#

Partial loads may not fully populate this mapping, but it can always be accessed.

The returned object may be an internal dictionary; as the type annotation indicates, it should not be modified in place.

quantum_only_xgraph#

A directed acyclic graph with quanta as nodes and datasets elided.

Notes#

Partial loads may not fully populate this graph, but it can always be accessed.

Node state dictionaries are described by the QuantumInfo type (or a subtype thereof).

The returned object is a read-only view of an internal one.