Skip to content

Commit

Permalink
changes default to consolidate for only indirect for parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
songololo committed Dec 20, 2023
1 parent 38af8a6 commit 7e2f596
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Binary file modified docs/public/images/graph_cleaning_1b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cityseer"
version = '4.6.5'
version = '4.6.6'
description = "Computational tools for network-based pedestrian-scale urban analysis"
readme = "README.md"
requires-python = ">=3.10, <3.12"
Expand Down
15 changes: 12 additions & 3 deletions pysrc/cityseer/tools/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,19 @@ def osm_graph_from_poly(
if simplify:
graph_crs = graphs.nx_remove_dangling_nodes(graph_crs, remove_disconnected=remove_disconnected)
graph_crs = graphs.nx_consolidate_nodes(
graph_crs, buffer_dist=crawl_consolidate_dist, crawl=True, contains_buffer_dist=contains_buffer_dist
graph_crs,
buffer_dist=crawl_consolidate_dist,
crawl=True,
contains_buffer_dist=contains_buffer_dist,
)
graph_crs = graphs.nx_split_opposing_geoms(
graph_crs, buffer_dist=parallel_consolidate_dist, contains_buffer_dist=contains_buffer_dist
)
graph_crs = graphs.nx_consolidate_nodes(
graph_crs, buffer_dist=parallel_consolidate_dist, contains_buffer_dist=contains_buffer_dist
graph_crs,
buffer_dist=parallel_consolidate_dist,
contains_buffer_dist=contains_buffer_dist,
neighbour_policy="indirect",
)
graph_crs = graphs.nx_remove_filler_nodes(graph_crs)
if iron_edges:
Expand All @@ -399,7 +405,10 @@ def osm_graph_from_poly(
graph_crs, buffer_dist=parallel_consolidate_dist, contains_buffer_dist=contains_buffer_dist
)
graph_crs = graphs.nx_consolidate_nodes(
graph_crs, buffer_dist=parallel_consolidate_dist, contains_buffer_dist=contains_buffer_dist
graph_crs,
buffer_dist=parallel_consolidate_dist,
contains_buffer_dist=contains_buffer_dist,
neighbour_policy="indirect",
)
graph_crs = graphs.nx_remove_filler_nodes(graph_crs)
if iron_edges:
Expand Down

0 comments on commit 7e2f596

Please sign in to comment.