Skip to content

Commit a45e60c

Browse files
committed
Merge branch 'master' of ssh://github.com/spectralpython/spectral
2 parents 4e0a6e5 + 8380aca commit a45e60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spectral/io/envi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def open(file, image=None):
384384

385385
if 'bbl' in h:
386386
try:
387-
h['bbl'] = [int(b) for b in h['bbl']]
387+
h['bbl'] = [int(float(b)) for b in h['bbl']]
388388
except:
389389
print('Unable to parse bad band list (bbl) in header as integers.')
390390
return img

0 commit comments

Comments
 (0)