Skip to content

Commit

Permalink
Fix issue with condition in Raster.reproject
Browse files Browse the repository at this point in the history
  • Loading branch information
adehecq committed Oct 20, 2023
1 parent af2fc8c commit a63b04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoutils/raster/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2100,7 +2100,7 @@ def reproject(
(dst_transform == self.transform) or (dst_transform is None),
(dst_crs == self.crs) or (dst_crs is None),
(dst_size == self.shape[::-1]) or (dst_size is None),
np.all(dst_res == self.res) or (dst_res == self.res[0] == self.res[1]) or (dst_res is None),
np.all(np.array(dst_res) == self.res) or (dst_res is None),
]
):
if (dst_nodata == self.nodata) or (dst_nodata is None):
Expand Down

0 comments on commit a63b04c

Please sign in to comment.