Skip to content

Commit 4550d91

Browse files
authored
DOC: more osmnx compat (pysal#670)
1 parent 92222c1 commit 4550d91

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docs/user_guide/graph/coins.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@
429429
},
430430
{
431431
"cell_type": "code",
432-
"execution_count": 11,
432+
"execution_count": null,
433433
"id": "9acb45e4-2074-4a0c-95e6-f8fb2269da0f",
434434
"metadata": {
435435
"execution": {
@@ -456,7 +456,7 @@
456456
"streets_graph = ox.projection.project_graph(streets_graph)\n",
457457
"\n",
458458
"streets = ox.graph_to_gdfs(\n",
459-
" ox.get_undirected(streets_graph),\n",
459+
" ox.convert.to_undirected(streets_graph),\n",
460460
" nodes=False,\n",
461461
" edges=True,\n",
462462
" node_geometry=False,\n",

docs/user_guide/preprocessing/consolidate_intersections.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"cell_type": "code",
67-
"execution_count": 2,
67+
"execution_count": null,
6868
"id": "77447ca3-58f2-4bfb-819d-035817bfbca7",
6969
"metadata": {
7070
"execution": {
@@ -104,7 +104,7 @@
104104
" (40.783169, -73.978315), dist=500, network_type=\"drive\"\n",
105105
")\n",
106106
"graph_projected = ox.project_graph(graph)\n",
107-
"graph_undirected = ox.get_undirected(graph_projected)\n",
107+
"graph_undirected = ox.convert.to_undirected(graph_projected)\n",
108108
"\n",
109109
"fig, ax = ox.plot_graph(graph_undirected)"
110110
]

docs/user_guide/preprocessing/roundabout_simplification.ipynb

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
{
4949
"cell_type": "code",
50-
"execution_count": 2,
50+
"execution_count": null,
5151
"metadata": {
5252
"execution": {
5353
"iopub.execute_input": "2024-06-14T22:02:49.232043Z",
@@ -240,13 +240,13 @@
240240
"source": [
241241
"place = \"Chamberi, Madrid\"\n",
242242
"\n",
243-
"G = ox.graph_from_place(\n",
244-
" place, network_type=\"drive\", simplify=True, buffer_dist=200\n",
245-
")\n",
243+
"G = ox.graph_from_place(place, network_type=\"drive\", simplify=True)\n",
246244
"G_projected = ox.project_graph(G)\n",
247245
"\n",
248246
"edges = ox.graph_to_gdfs(\n",
249-
" ox.get_undirected(G_projected), # prevents some (semi)duplicate geometries\n",
247+
" ox.convert.to_undirected(\n",
248+
" G_projected\n",
249+
" ), # prevents some (semi)duplicate geometries\n",
250250
" nodes=False,\n",
251251
" edges=True,\n",
252252
" node_geometry=False,\n",

0 commit comments

Comments
 (0)