Skip to content

Commit

Permalink
Remove unused rasterio import and clean up test cases for reproject m…
Browse files Browse the repository at this point in the history
…ethod
  • Loading branch information
emmanuelmathot committed Jan 25, 2025
1 parent fa506c3 commit 4e5489b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion rio_tiler/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from numpy.typing import NDArray
from pydantic import BaseModel
from rasterio import windows
import rasterio
from rasterio.coords import BoundingBox
from rasterio.crs import CRS
from rasterio.dtypes import dtype_ranges
Expand Down
4 changes: 0 additions & 4 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,6 @@ def test_reproject_with_data():
metadata={"test": "value"},
band_names=["band1"],
)
with open("img.png", "wb") as f:
f.write(img.render())

assert numpy.any(img.array.data > 0)

Expand All @@ -534,8 +532,6 @@ def test_reproject_with_data():

reprojected = img.reproject(dst_crs)

with open("reprojected.png", "wb") as f:
f.write(reprojected.render())

# Check metadata preservation
assert reprojected.metadata == img.metadata
Expand Down

0 comments on commit 4e5489b

Please sign in to comment.