Skip to content

Commit

Permalink
deletion of an excess None in 2 cells, which causes the error: "_is_e…
Browse files Browse the repository at this point in the history
…ndpoint() takes 3 positional arguments but 4 were given"
  • Loading branch information
titouanlegourrierec authored May 20, 2024
1 parent ef2aff0 commit 527c4b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebooks/04-simplify-graph-consolidate-nodes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"outputs": [],
"source": [
"# show which nodes we'd remove if we simplify it (yellow)\n",
"nc = [\"r\" if ox.simplification._is_endpoint(G, node, None, None) else \"y\" for node in G.nodes()]\n",
"nc = [\"r\" if ox.simplification._is_endpoint(G, node, None) else \"y\" for node in G.nodes()]\n",
"fig, ax = ox.plot_graph(G, node_color=nc)"
]
},
Expand Down Expand Up @@ -183,7 +183,7 @@
"source": [
"# turn off strict mode and see what nodes we'd remove\n",
"nc = [\n",
" \"r\" if ox.simplification._is_endpoint(G, node, [\"osmid\"], None) else \"y\" for node in G.nodes()\n",
" \"r\" if ox.simplification._is_endpoint(G, node, [\"osmid\"]) else \"y\" for node in G.nodes()\n",
"]\n",
"fig, ax = ox.plot_graph(G, node_color=nc)"
]
Expand Down

0 comments on commit 527c4b8

Please sign in to comment.