Commit 71270536 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Bugfix.

parent 2e9a54ba
......@@ -715,9 +715,14 @@ class GMS_object(object):
except ValueError as e:
if str(e) == 'The given GMS_object contains no accuracy layers for combination.':
if CFG.ac_estimate_accuracy or CFG.spechomo_estimate_accuracy:
self.logger.warning('The given GMS_object contains no accuracy layers although computation '
'of accurracy layers was enabled in job configuration.')
if any([CFG.ac_estimate_accuracy, CFG.spathomo_estimate_accuracy, CFG.spechomo_estimate_accuracy]):
if self.proc_level == 'L2C':
self.logger.warning('The given GMS_object contains no accuracy layers although computation '
'of accurracy layers was enabled in job configuration.')
else:
# Suppress the warning if accuracy_layers is just called by GMS_object.to_tiles() within
# L2A or L2B processing.
pass
else:
pass # self._accuracy_layers keeps None
else:
......
......@@ -203,9 +203,9 @@ def L2A_map(L1C_objs, block_size=None, return_tiles=True):
[L2A_obj.delete_tempFiles() for L2A_obj in L2A_objs]
if return_tiles:
L2A_tiles = L2A_obj.to_tiles(blocksize=block_size if block_size else CFG.tiling_block_size_XY)
L2A_tiles = list(L2A_obj.to_tiles(blocksize=block_size if block_size else CFG.tiling_block_size_XY))
[L2A_tile.record_mem_usage() for L2A_tile in L2A_tiles]
return list(L2A_tiles)
return L2A_tiles
else:
L2A_obj.record_mem_usage()
return L2A_obj
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment