NodeKey#
- class lsst.pipe.base.pipeline_graph.NodeKey(node_type: NodeType, name: str)#
Bases:
NamedTupleA special key type for nodes in networkx graphs.
Notes#
Using a tuple for the key allows tasks labels and dataset type names with the same string value to coexist in the graph. These only rarely appear in
PipelineGraphpublic interfaces; when the node type is implicit, barestrtask labels or dataset type names are used instead.NodeKey objects stringify to just their name, which is used both as a way to convert to the
strobjects used in the main public interface and as an easy way to usefully stringify containers returned directly by networkx algorithms (especially in error messages). Note that this requiresrepr, not juststr, because Python builtin containers always userepron their items, even in their implementations forstr.Attributes Summary
Attributes Documentation
- name: str#
Task label or dataset type name.
This is always the parent dataset type name for component dataset types.
- node_id#