From a7c55f2ca82d36aa8c3995b6cb326a9a4360755c Mon Sep 17 00:00:00 2001 From: ValentinaHutter Date: Mon, 23 Sep 2024 15:50:59 +0200 Subject: [PATCH] add sen2like as a result node process! --- openeo/rest/datacube.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openeo/rest/datacube.py b/openeo/rest/datacube.py index b920e7591..61186bd19 100644 --- a/openeo/rest/datacube.py +++ b/openeo/rest/datacube.py @@ -2103,6 +2103,7 @@ def _ensure_save_result( :param options: (optional) desired `save_result` file format parameters :return: """ + allowed_result_nodes = ["sen2like", ] # TODO #401 Unify with VectorCube._ensure_save_result and move to generic data cube parent class (not only for raster cubes, but also vector cubes) result_node = self.result_node() if result_node.process_id == "save_result": @@ -2118,6 +2119,8 @@ def _ensure_save_result( f"Existing `save_result` node with different options {args['options']!r} != {options!r}" ) cube = self + elif result_node in allowed_result_nodes: + pass else: # No `save_result` node yet: automatically add it. cube = self.save_result(