Skip to content

Commit 3a60e32

Browse files
Merge pull request #62 from gregory-halverson-jpl/main
fixing mosaic
2 parents 6d15c5e + 880e07e commit 3a60e32

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "rasters"
7-
version = "1.16.0"
7+
version = "1.16.1"
88
description = "raster processing toolkit"
99
readme = "README.md"
1010
authors = [

rasters/mosaic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def mosaic(
3636
if len(images) == 0:
3737
raise ValueError("No images provided for mosaicking.")
3838

39-
if len(images[0].shape == 2):
39+
if len(images[0].shape) == 2:
4040
mosaic = Raster(np.full(geometry.shape, np.nan), geometry=geometry)
41-
elif len(images[0].shape == 3):
41+
elif len(images[0].shape) == 3:
4242
mosaic = MultiRaster(np.full(geometry.shape, np.nan), geometry=geometry)
4343
else:
4444
raise ValueError("Unsupported image shape for mosaicking.")

0 commit comments

Comments
 (0)