Skip to content
Snippets Groups Projects
Commit 8cd37437 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Merge branch 'bugfix/fix_unexpected_warnings' into 'master'

Bugfix/fix unexpected warnings

Closes #102

See merge request !83
parents 7c408687 0667e823
No related branches found
No related tags found
1 merge request!83Bugfix/fix unexpected warnings
Pipeline #58394 passed
......@@ -10,6 +10,7 @@ History
* !81: Fixed #100 (`run_deadpix_P=False` does not disable second run of dead pixel correction after AC).
* !82: Fixed #101 (Lower case raster file extensions are incompatible with EnMAP-Box product import dialog)
by switching to uppercase file extensions in case of ENVI output format.
* !83: Fixed #102 (Output writer raises warnings that Polymer results cannot be written although AC mode is 'land').
0.19.0 (2023-02-17)
......
......@@ -288,7 +288,8 @@ class EnMAPL2Product_MapGeo(_EnMAP_Image):
attr_gA.save(outpath, **kwargs_save)
outpaths[attrName] = outpath
else:
if attrName.startswith('polymer_') and not self.cfg.polymer_additional_results:
if attrName.startswith('polymer_') and \
(not self.cfg.polymer_additional_results or self.cfg.mode_ac == 'land'):
# Do not show a warning if a Polymer product was intentionally not produced and cannot be saved.
pass
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment