Skip to content

Commit

Permalink
updates for v1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed Feb 1, 2024
1 parent c595e7d commit 3f84546
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ channels:
- conda-forge
dependencies:
- jupyterlab
- osmnx=1.8.1
- osmnx=1.9.0
- pillow
- pre-commit
- python=3.11.*
- python=3.12.*
- python-igraph
2 changes: 1 addition & 1 deletion notebooks/01-overview-osmnx.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@
"outputs": [],
"source": [
"# turn off strict mode and see what nodes we'd remove, in yellow\n",
"nc = [\"r\" if ox.simplification._is_endpoint(G, node) 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
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 @@ -150,7 +150,7 @@
"outputs": [],
"source": [
"# show which nodes we'd remove if we simplify it (yellow)\n",
"nc = [\"r\" if ox.simplification._is_endpoint(G, node) 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 @@
"outputs": [],
"source": [
"# turn off strict mode and see what nodes we'd remove\n",
"nc = [\"r\" if ox.simplification._is_endpoint(G, node, strict=False) else \"y\" for node in G.nodes()]\n",
"nc = [\"r\" if ox.simplification._is_endpoint(G, node, [\"osmid\"]) else \"y\" for node in G.nodes()]\n",
"fig, ax = ox.plot_graph(G, node_color=nc)"
]
},
Expand Down

0 comments on commit 3f84546

Please sign in to comment.