diff --git a/pyproject.toml b/pyproject.toml index 682d03e..acc3b70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "rasters" -version = "1.5.4" +version = "1.5.5" description = "raster processing toolkit" readme = "README.md" authors = [ diff --git a/rasters/mosaic.py b/rasters/mosaic.py index bd4746b..eca423e 100644 --- a/rasters/mosaic.py +++ b/rasters/mosaic.py @@ -1,5 +1,5 @@ from __future__ import annotations - +import warnings from typing import Iterator, Union, TYPE_CHECKING import numpy as np @@ -42,7 +42,9 @@ def mosaic(images: Iterator[Union[Raster, str]], geometry: RasterGeometry) -> Ra metadata = image.metadata # Overlay the image onto the mosaic using the 'where' function - mosaic = where(np.isnan(mosaic), image.to_geometry(geometry), mosaic) + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + mosaic = where(np.isnan(mosaic), image.to_geometry(geometry), mosaic) mosaic = mosaic.astype(dtype) # Set the data type of the mosaic mosaic = Raster(mosaic, geometry=geometry, nodata=nodata, metadata=metadata) # Create the final Raster diff --git a/rasters/version.txt b/rasters/version.txt index 94fe62c..5ebba4f 100644 --- a/rasters/version.txt +++ b/rasters/version.txt @@ -1 +1 @@ -1.5.4 +1.5.5 \ No newline at end of file