eta_nexus.nodes.node_utils module
- eta_nexus.nodes.node_utils.name_map_from_node_sequence(nodes: Nodes[N]) dict[str, N][source]
Convert a Sequence/List of Nodes into a dictionary of nodes, identified by their name.
Warning
Make sure that each node in nodes has a unique Name, otherwise this function will fail.
- Parameters:
nodes – Sequence of Node objects.
- Returns:
Dictionary of Node objects (format: {node.name: Node}).