Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sen2like as a result node process #627

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions openeo/rest/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand All @@ -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(
Expand Down