Skip to content

Commit f289658

Browse files
committed
Issue #100: drop client specific send_job and graph_add_process methods from ImageCollection base class
1 parent eb7d7a5 commit f289658

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

openeo/imagecollection.py

-19
Original file line numberDiff line numberDiff line change
@@ -541,25 +541,6 @@ def tiled_viewing_service(self,**kwargs) -> Dict:
541541
"""
542542
pass
543543

544-
def send_job(self) -> Job:
545-
"""Sends the current process to the backend, for batch processing.
546-
547-
:return: Job: A job object that can be used to query the processing status.
548-
"""
549-
pass
550-
551-
def graph_add_process(self, process_id, args) -> 'ImageCollection':
552-
"""
553-
Returns a new imagecollection with an added process with the given process
554-
id and a dictionary of arguments
555-
556-
:param process_id: String, Process Id of the added process.
557-
:param args: Dict, Arguments of the process.
558-
559-
:return: imagecollection: Instance of the ImageCollection class
560-
"""
561-
pass
562-
563544
def pipe(self, func: Callable, *args, **kwargs):
564545
"""
565546
Pipe the image collection through a function and return the result.

openeo/rest/imagecollectionclient.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1058,13 +1058,15 @@ def _graph_merge(self, other_graph:Dict):
10581058
newCollection = ImageCollectionClient(self.node_id, merged, self.session, metadata=self.metadata)
10591059
return newCollection
10601060

1061-
def graph_add_process(self, process_id, args) -> 'ImageCollection':
1061+
def graph_add_process(self, process_id, args) -> 'ImageCollectionClient':
10621062
"""
1063-
Returns a new restimagery with an added process with the given process
1063+
Returns a new imagecollection with an added process with the given process
10641064
id and a dictionary of arguments
1065+
10651066
:param process_id: String, Process Id of the added process.
10661067
:param args: Dict, Arguments of the process.
1067-
:return: imagery: Instance of the RestImagery class
1068+
1069+
:return: new ImageCollectionClient instance
10681070
"""
10691071
#don't modify in place, return new builder
10701072
newbuilder = GraphBuilder(self.builder.processes)

0 commit comments

Comments
 (0)