From 4550d91f322bdcd8b3b41c99ab18571de352e203 Mon Sep 17 00:00:00 2001 From: Martin Fleischmann Date: Mon, 25 Nov 2024 16:28:15 +0100 Subject: [PATCH] DOC: more osmnx compat (#670) --- docs/user_guide/graph/coins.ipynb | 4 ++-- .../preprocessing/consolidate_intersections.ipynb | 4 ++-- .../preprocessing/roundabout_simplification.ipynb | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/user_guide/graph/coins.ipynb b/docs/user_guide/graph/coins.ipynb index 25c3119b..1b5f327a 100644 --- a/docs/user_guide/graph/coins.ipynb +++ b/docs/user_guide/graph/coins.ipynb @@ -429,7 +429,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "id": "9acb45e4-2074-4a0c-95e6-f8fb2269da0f", "metadata": { "execution": { @@ -456,7 +456,7 @@ "streets_graph = ox.projection.project_graph(streets_graph)\n", "\n", "streets = ox.graph_to_gdfs(\n", - " ox.get_undirected(streets_graph),\n", + " ox.convert.to_undirected(streets_graph),\n", " nodes=False,\n", " edges=True,\n", " node_geometry=False,\n", diff --git a/docs/user_guide/preprocessing/consolidate_intersections.ipynb b/docs/user_guide/preprocessing/consolidate_intersections.ipynb index 985b0cdd..a29b5167 100644 --- a/docs/user_guide/preprocessing/consolidate_intersections.ipynb +++ b/docs/user_guide/preprocessing/consolidate_intersections.ipynb @@ -64,7 +64,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "77447ca3-58f2-4bfb-819d-035817bfbca7", "metadata": { "execution": { @@ -104,7 +104,7 @@ " (40.783169, -73.978315), dist=500, network_type=\"drive\"\n", ")\n", "graph_projected = ox.project_graph(graph)\n", - "graph_undirected = ox.get_undirected(graph_projected)\n", + "graph_undirected = ox.convert.to_undirected(graph_projected)\n", "\n", "fig, ax = ox.plot_graph(graph_undirected)" ] diff --git a/docs/user_guide/preprocessing/roundabout_simplification.ipynb b/docs/user_guide/preprocessing/roundabout_simplification.ipynb index 85f0f696..7a442217 100644 --- a/docs/user_guide/preprocessing/roundabout_simplification.ipynb +++ b/docs/user_guide/preprocessing/roundabout_simplification.ipynb @@ -47,7 +47,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": { "execution": { "iopub.execute_input": "2024-06-14T22:02:49.232043Z", @@ -240,13 +240,13 @@ "source": [ "place = \"Chamberi, Madrid\"\n", "\n", - "G = ox.graph_from_place(\n", - " place, network_type=\"drive\", simplify=True, buffer_dist=200\n", - ")\n", + "G = ox.graph_from_place(place, network_type=\"drive\", simplify=True)\n", "G_projected = ox.project_graph(G)\n", "\n", "edges = ox.graph_to_gdfs(\n", - " ox.get_undirected(G_projected), # prevents some (semi)duplicate geometries\n", + " ox.convert.to_undirected(\n", + " G_projected\n", + " ), # prevents some (semi)duplicate geometries\n", " nodes=False,\n", " edges=True,\n", " node_geometry=False,\n",