Skip to content

Commit

Permalink
remove deprecated connection.get_process
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Sep 26, 2019
1 parent 2f02ce0 commit 6affd92
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
13 changes: 0 additions & 13 deletions openeo/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,19 +195,6 @@ def remove_service(self, service_id: str):

# TODO: methods below are depricated / should be located somewhere else.

@abstractmethod
def get_process(self, process_id) -> dict:
# TODO: Maybe create some kind of Process class.
"""
Get detailed information about a specifig process.
:param process_id: String Process identifier
:return: processes_dict: Dict with the detail information about the
process
"""
pass

@abstractmethod
def imagecollection(self, image_collection_id:str) -> ImageCollection:
"""
Expand Down
16 changes: 0 additions & 16 deletions openeo/rest/rest_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,22 +215,6 @@ def list_processgraphs(self, process_graph):
# Endpoint: GET /process_graphs
return self.not_supported()

def get_process(self, process_id) -> dict:
# TODO: Maybe create some kind of Process class.
"""
Get detailed information about a specifig process.
:param process_id: String Process identifier
:return: processes_dict: Dict with the detail information about the
process
"""
if process_id:
process_info = self.get('/processes/{}'.format(process_id), auth=False)
processes_dict = self.parse_json_response(process_info)
else:
processes_dict = None

return processes_dict

@property
def _api_version(self):
return self.capabilities().api_version_check
Expand Down

0 comments on commit 6affd92

Please sign in to comment.