Skip to content

Commit

Permalink
increase opentopodata pause to prevent rate limiting in CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed Nov 24, 2024
1 parent cc1ff4a commit a4d436c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_osmnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ def test_elevation() -> None:
ox.settings.elevation_url_template = (
"https://api.opentopodata.org/v1/aster30m?locations={locations}&key={key}"
)
_ = ox.elevation.add_node_elevations_google(G, batch_size=100, pause=0.01)
_ = ox.elevation.add_node_elevations_google(G, batch_size=100, pause=0.5)

# same thing again, to hit the cache
_ = ox.elevation.add_node_elevations_google(G, batch_size=100, pause=0.01)
_ = ox.elevation.add_node_elevations_google(G, batch_size=100, pause=0)

# add node elevations from a single raster file (some nodes will be null)
rasters = list(Path("tests/input_data").glob("elevation*.tif"))
Expand Down

0 comments on commit a4d436c

Please sign in to comment.