diff --git a/opentopodata/backend.py b/opentopodata/backend.py index d5a6c8f..5280b32 100644 --- a/opentopodata/backend.py +++ b/opentopodata/backend.py @@ -69,7 +69,7 @@ def _validate_points_lie_within_raster(xs, ys, lats, lons, bounds, res): return sorted(oob_indices) -def _get_elevation_from_path(lats, lons, path, interpolation, use_mmap=False): +def _get_elevation_from_path(lats, lons, path, interpolation): """Read values at locations in a raster. Args: diff --git a/requirements.in b/requirements.in index 4e3052b..0d344ef 100644 --- a/requirements.in +++ b/requirements.in @@ -11,5 +11,5 @@ pytest pytest-cov pytest-timeout PyYAML -rasterio<1.3.0 +rasterio==1.3.8 requests diff --git a/requirements.txt b/requirements.txt index 19192ee..422f820 100644 --- a/requirements.txt +++ b/requirements.txt @@ -102,7 +102,7 @@ pytest-timeout==2.1.0 # via -r requirements.in pyyaml==6.0.1 # via -r requirements.in -rasterio==1.2.10 +rasterio==1.3.8 # via -r requirements.in requests==2.31.0 # via -r requirements.in diff --git a/tests/test_backend.py b/tests/test_backend.py index db6129a..b6e39d1 100644 --- a/tests/test_backend.py +++ b/tests/test_backend.py @@ -154,16 +154,6 @@ def test_bilinear_interpolation(self): 0.4, 0.3, self.geotiff_z[:2, :2] ) - def test_mmap(self): - lats = [89.6] - lons = [-179.7] - z = backend._get_elevation_from_path( - lats, lons, ETOPO1_GEOTIFF_PATH, "bilinear", use_mmap=True - ) - assert pytest.approx(z[0]) == self._interp_bilinear( - 0.4, 0.3, self.geotiff_z[:2, :2] - ) - def test_none_outside_dataset(self): lats = [0, 0, -90.1, 90.1] lons = [-180.1, 180.1, 0, 0]