Skip to content

Commit

Permalink
changes the default max angle param for weighting method
Browse files Browse the repository at this point in the history
  • Loading branch information
songololo committed Dec 1, 2023
1 parent d6e8945 commit 771f66c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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.5.7'
version = '4.5.8'
description = "Computational tools for network-based pedestrian-scale urban analysis"
readme = "README.md"
requires-python = ">=3.10, <3.12"
Expand Down
4 changes: 2 additions & 2 deletions pysrc/cityseer/tools/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ def prepare_dual_node_key(start_nd_key: NodeKey, end_nd_key: NodeKey, edge_idx:


def nx_weight_by_dissolved_edges(
nx_multigraph: MultiGraph, dissolve_distance: int = 20, max_ang_diff: int = 15
nx_multigraph: MultiGraph, dissolve_distance: int = 20, max_ang_diff: int = 45
) -> MultiGraph:
"""
Generates graph node weightings based on the ratio of directly adjacent edges to total nearby edges.
Expand All @@ -1349,7 +1349,7 @@ def nx_weight_by_dissolved_edges(
A distance to use when buffering edges to calculate the weighting. 20m by default.
max_ang_diff: int
Only count a nearby adjacent edge as duplicitous if the angular difference between edges is less than
`max_ang_diff`. 15 degrees by default.
`max_ang_diff`. 45 degrees by default.
Returns
-------
Expand Down

0 comments on commit 771f66c

Please sign in to comment.