Commit 878a8551 authored by Germain Salgues's avatar Germain Salgues

FIX: minor bug fix

parent c204aa1e
......@@ -346,7 +346,7 @@ class snow_annual_map():
if self.mode == "DEBUG":
dest_debug_dir = op.join(self.path_out, "tmpdir")
if op.exists(dest_debug_dir):
shutil.rmtree(shutil)
shutil.rmtree(dest_debug_dir)
shutil.copytree(self.path_tmp, dest_debug_dir)
def load_products(self, snow_products_list, tile_id=None, product_type=None):
......
......@@ -160,8 +160,8 @@ class snow_annual_map_evaluation(snow_annual_map):
# load required product
self.resulting_snow_mask_dict={}
for key in self.product_dict.keys():
comparison_tag = key + "_comparison"
if len(self.product_dict[key]) > 1:
comparison_tag = key + "_comparison"
merged_mask = op.join(self.path_tmp, comparison_tag + "_merged_snow_product.tif")
merge_masks_at_same_date(self.product_dict[key], merged_mask, self.label_snow, self.ram)
self.resulting_snow_mask_dict[comparison_tag] = merged_mask
......
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