openeo-python-client icon indicating copy to clipboard operation
openeo-python-client copied to clipboard

execute_batch silently adds save_result even if there is already one

Open soxofaan opened this issue 1 year ago • 3 comments

cube = cube.save_result(format="NetCDF")
cube.execute_batch()

the last execute_batch() call will silently add a save_result("GTiff") causing to post a process graph with two save_result nodes (in series), which is not intended by the user and not valid either (https://github.com/Open-EO/openeo-processes/issues/334)

soxofaan avatar Mar 24 '23 11:03 soxofaan

reopening: still has to be addressed for VectorCubes (and related)

started WIP in #415 already

soxofaan avatar Apr 12 '23 08:04 soxofaan

Already avoided double save_result with VectorCube.save_result + .download() in 8cbaf25

still some more work to do: make this feature more generic, like in WIP PR #415

soxofaan avatar Jul 14 '23 16:07 soxofaan

addressing #402 will probably simplify and help with the unification of this feature

soxofaan avatar Jul 18 '23 07:07 soxofaan