Skip to content

Commit 1a523e1

Browse files
committed
WIP
1 parent bdea97d commit 1a523e1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

openeo/rest/mlmodel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class MlModel(_ProcessGraphAbstraction):
2424
2525
.. versionadded:: 0.10.0
2626
"""
27+
28+
# TODO
2729
def __init__(self, graph: PGNode, connection: 'Connection'):
2830
super().__init__(pgnode=graph, connection=connection)
2931

openeo/rest/vectorcube.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ def run_udf(
9090

9191
@openeo_process
9292
def save_result(self, format: str = "GeoJson", options: dict = None):
93+
# TODO?
94+
# TODO: check format against supported formats
95+
# TODO: should not return a VectorCube again, but bool wrapper
96+
# TODO: should save_result also work on non-cube data types, e.g. arrays, scalars?
9397
return self.process(
9498
process_id="save_result",
9599
arguments={
@@ -105,6 +109,7 @@ def execute(self) -> dict:
105109

106110
def download(self, outputfile: str, format: str = "GeoJSON", options: dict = None):
107111
# TODO: only add save_result, when not already present (see DataCube.download)
112+
# TODO
108113
cube = self.save_result(format=format, options=options)
109114
return self._connection.download(cube.flat_graph(), outputfile)
110115

0 commit comments

Comments
 (0)