There was an error while loading. Please reload this page.
1 parent 98413f4 commit 2cc14cfCopy full SHA for 2cc14cf
1 file changed
raster_loader/io/common.py
@@ -637,10 +637,9 @@ def raster_band_stats(
637
print("Removing masked data...")
638
qdata = raster_band.compressed()
639
640
- if basic_stats:
641
- quantiles = None
642
- most_common = None
643
- else:
+ quantiles = None
+ most_common = None
+ if not basic_stats:
644
casting_function = (
645
int if np.issubdtype(raster_band.dtype, np.integer) else float
646
)
0 commit comments