From 14965a03c83ec74f9a30b7c1932f55c832ac9cec Mon Sep 17 00:00:00 2001 From: Luca Foresta Date: Thu, 14 May 2020 16:03:57 +0200 Subject: [PATCH] bug fix for map_save_result - fixed: erroneously add flag "in_place=True" when field "result" in process graph is present but with value "false" --- src/eodc_openeo_bindings/map_processes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eodc_openeo_bindings/map_processes.py b/src/eodc_openeo_bindings/map_processes.py index 412154e..a843742 100644 --- a/src/eodc_openeo_bindings/map_processes.py +++ b/src/eodc_openeo_bindings/map_processes.py @@ -42,12 +42,12 @@ def map_process(process, process_name, process_id, root_folder, if not isinstance(dict_items, list): dict_items = [dict_items] - if 'result' in process.keys() and process['process_id'] != 'save_result': + if 'result' in process.keys() and process['result'] and process['process_id'] != 'save_result': # Add save_result node if vrt_only: dict_item = map_save_result(process, format_type='VRT') else: - dict_item =map_save_result(process, format_type='Gtiff', in_place=True) + dict_item = map_save_result(process, format_type='Gtiff', in_place=True) dict_items.extend(dict_item) elif process['process_id'] == 'save_result': if vrt_only: