Skip to content

Commit 2cc14cf

Browse files
juanrmnjuanrmn
andauthored
bugfix variable not initialized (#177)
Co-authored-by: juanrmn <[email protected]>
1 parent 98413f4 commit 2cc14cf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

raster_loader/io/common.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,9 @@ def raster_band_stats(
637637
print("Removing masked data...")
638638
qdata = raster_band.compressed()
639639

640-
if basic_stats:
641-
quantiles = None
642-
most_common = None
643-
else:
640+
quantiles = None
641+
most_common = None
642+
if not basic_stats:
644643
casting_function = (
645644
int if np.issubdtype(raster_band.dtype, np.integer) else float
646645
)

0 commit comments

Comments
 (0)