From 527c4b8d2c78fcd9555d347c50372919930dad33 Mon Sep 17 00:00:00 2001 From: Titouan Le Gourrierec Date: Mon, 20 May 2024 19:19:10 +0300 Subject: [PATCH] deletion of an excess None in 2 cells, which causes the error: "_is_endpoint() takes 3 positional arguments but 4 were given" --- notebooks/04-simplify-graph-consolidate-nodes.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/04-simplify-graph-consolidate-nodes.ipynb b/notebooks/04-simplify-graph-consolidate-nodes.ipynb index 6dd5362..4252051 100644 --- a/notebooks/04-simplify-graph-consolidate-nodes.ipynb +++ b/notebooks/04-simplify-graph-consolidate-nodes.ipynb @@ -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)" ] }, @@ -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)" ]