ajnisbet / opentopodata

Open alternative to the Google Elevation API!
https://www.opentopodata.org
MIT License
312 stars 69 forks source link

Bugfix for unknown files error message #70

Closed khendrickx closed 1 year ago

khendrickx commented 1 year ago

is_srtm_raster will be a list of None if none of the files match FILENAME_TILE_REGEX, causing an exception for np.argmin. This commit replaces those None values with False.

ajnisbet commented 1 year ago

Thanks for this fix! I've merged it into the dev branch, and will include it in the next release when I figure out how to fix https://github.com/ajnisbet/opentopodata/issues/68