diff --git a/openeo/rest/mlmodel.py b/openeo/rest/mlmodel.py index 8291c4dba..45b422d5b 100644 --- a/openeo/rest/mlmodel.py +++ b/openeo/rest/mlmodel.py @@ -24,6 +24,8 @@ class MlModel(_ProcessGraphAbstraction): .. versionadded:: 0.10.0 """ + + # TODO def __init__(self, graph: PGNode, connection: 'Connection'): super().__init__(pgnode=graph, connection=connection) diff --git a/openeo/rest/vectorcube.py b/openeo/rest/vectorcube.py index a9db44110..7a36cb9d0 100644 --- a/openeo/rest/vectorcube.py +++ b/openeo/rest/vectorcube.py @@ -90,6 +90,10 @@ def run_udf( @openeo_process def save_result(self, format: str = "GeoJson", options: dict = None): + # TODO? + # TODO: check format against supported formats + # TODO: should not return a VectorCube again, but bool wrapper + # TODO: should save_result also work on non-cube data types, e.g. arrays, scalars? return self.process( process_id="save_result", arguments={ @@ -105,6 +109,7 @@ def execute(self) -> dict: def download(self, outputfile: str, format: str = "GeoJSON", options: dict = None): # TODO: only add save_result, when not already present (see DataCube.download) + # TODO cube = self.save_result(format=format, options=options) return self._connection.download(cube.flat_graph(), outputfile)