From 3e4d4332a7c05eaeb2b197ea33c39dfe1b9beaea Mon Sep 17 00:00:00 2001 From: napakalas Date: Fri, 20 Feb 2026 12:44:34 +1300 Subject: [PATCH] Fix nerve list per path to handle aliasing correctly (#178). --- mapmaker/properties/pathways.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mapmaker/properties/pathways.py b/mapmaker/properties/pathways.py index 5df08455..24392a09 100644 --- a/mapmaker/properties/pathways.py +++ b/mapmaker/properties/pathways.py @@ -370,7 +370,8 @@ def list_to_tuple(obj): if conn_id in rendered_route_graphs ], 'node_nerves': [ - list_to_tuple(n) for n in connectivity_graph.graph.get('nerves', []) + list_to_tuple(connectivity_graph.nodes[list_to_tuple(n)]['node']) + for n in connectivity_graph.graph.get('nerves', []) if list_to_tuple(n) in available_nodes ], 'node_mappings': [