Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mapmaker/properties/pathways.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ def list_to_tuple(obj):

# remove the missing nodes:
removed_nodes = []
for node in connectivity_graph.nodes:
if node not in available_nodes:
for node, node_dict in connectivity_graph.nodes(data=True):
if node not in available_nodes and node_dict['node'] not in available_nodes:
removed_nodes += [node]
neighbors = list(connectivity_graph.neighbors(node))
predecessors = [n for n in neighbors if n == connectivity_graph.edges[(node, n)]['predecessor']]
Expand Down