From c20b9e07d48d6fe662202970d0d93639997bef61 Mon Sep 17 00:00:00 2001 From: napakalas Date: Fri, 25 Jul 2025 14:36:36 +1200 Subject: [PATCH] Fix the forward-connection filtering reference #145. --- mapmaker/properties/pathways.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mapmaker/properties/pathways.py b/mapmaker/properties/pathways.py index af9f2113..44a65714 100644 --- a/mapmaker/properties/pathways.py +++ b/mapmaker/properties/pathways.py @@ -772,7 +772,7 @@ def __extract_rendered_connectivity(self, route_graphs, path_id): }, 'forward_connections': [ conn_id for conn_id in connectivity_graph.graph.get('forward-connections', []) - if conn_id in route_graphs and route_graphs[conn_id].graph['connectivity'].nodes + if conn_id in route_graphs and route_graphs[conn_id].nodes ], 'node_nerves': [ rn for n in connectivity_graph.graph.get('nerves', []) @@ -780,7 +780,7 @@ def __extract_rendered_connectivity(self, route_graphs, path_id): ((rn := connectivity_graph.nodes[n]['node']) == n or any(get_knowledge(t).get('type') == NERVE_TYPE for t in [rn[0], *rn[1]])) ] } - + return rendered_data @@ -822,7 +822,7 @@ def __route_network_connectivity(self, network: Network): ('completeness', path.connectivity.graph.get('completeness')), ] if value is not None } - + for geometric_shape in geometric_shapes: if geometric_shape.properties.get('type') not in ['arrow', 'junction']: properties = DEFAULT_PATH_PROPERTIES.copy() | added_properties