Skip to content

Commit

Permalink
Merge pull request #1250 from gboeing/imports
Browse files Browse the repository at this point in the history
fix message when missing optional dependencies in elevation module
  • Loading branch information
gboeing authored Dec 10, 2024
2 parents 10a1686 + 8eadb2d commit bffcba2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.0.1 (TBD)

- fix message when missing optional dependencies in elevation module (#1250)

## 2.0.0 (2024-11-24)

Read the v2 [migration guide](https://github.com/gboeing/osmnx/issues/1123)
Expand Down
4 changes: 3 additions & 1 deletion osmnx/elevation.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
# rasterio and rio-vrt are optional dependencies for raster querying
try:
import rasterio
from rio_vrt import build_vrt
except ImportError: # pragma: no cover
rasterio = None
try:
from rio_vrt import build_vrt
except ImportError: # pragma: no cover
build_vrt = None


Expand Down

0 comments on commit bffcba2

Please sign in to comment.