Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions qps/speclib/gui/spectralprocessingdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,13 +901,13 @@ def runAlgorithm(self, fail_fast: bool = False) -> None:
spectralProperties = QgsRasterLayerSpectralProperties.fromRasterLayer(lyr)
wl = spectralProperties.wavelengths()
wlu = spectralProperties.wavelengthUnits()
bbl = spectralProperties.badBands()
bbl = spectralProperties.badBands(default=1)

# wavelength need to be defined for all bands
# wavelength needs to be defined for all bands
if any([w is None for w in wl]):
wl = None

# choose 1st wavelength unit for entire profile
# choose the 1st wavelength unit for the entire profile
for w in wlu:
if w not in [None, '']:
wlu = w
Expand Down
Loading