Skip to content

Commit

Permalink
test_extract_edge_bearings_directionality: add_edge_lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed Mar 4, 2024
1 parent 32ed03f commit 9cb9c99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_osmnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def test_extract_edge_bearings_directionality() -> None:
G.add_node("point_1", x=0.0, y=0.0)
G.add_node("point_2", x=0.0, y=1.0) # latitude increases northward
G.add_edge("point_1", "point_2")
G = ox.distance.add_edge_lengths(G)
G = ox.add_edge_bearings(G)
with pytest.warns(UserWarning, match="Extracting directional bearings"):
bearings = ox.bearing._extract_edge_bearings(G, min_length=0.0, weight=None)
Expand Down

0 comments on commit 9cb9c99

Please sign in to comment.