We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d15c5e + 880e07e commit 3a60e32Copy full SHA for 3a60e32
2 files changed
pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
5
[project]
6
name = "rasters"
7
-version = "1.16.0"
+version = "1.16.1"
8
description = "raster processing toolkit"
9
readme = "README.md"
10
authors = [
rasters/mosaic.py
@@ -36,9 +36,9 @@ def mosaic(
36
if len(images) == 0:
37
raise ValueError("No images provided for mosaicking.")
38
39
- if len(images[0].shape == 2):
+ if len(images[0].shape) == 2:
40
mosaic = Raster(np.full(geometry.shape, np.nan), geometry=geometry)
41
- elif len(images[0].shape == 3):
+ elif len(images[0].shape) == 3:
42
mosaic = MultiRaster(np.full(geometry.shape, np.nan), geometry=geometry)
43
else:
44
raise ValueError("Unsupported image shape for mosaicking.")
0 commit comments