From 6affd923ef4f5162d93a9ea1c7b1684f1c7f0dd0 Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Thu, 26 Sep 2019 11:42:39 +0200 Subject: [PATCH] remove deprecated `connection.get_process` #72, Open-EO/openeo-api#54 --- openeo/connection.py | 13 ------------- openeo/rest/rest_connection.py | 16 ---------------- 2 files changed, 29 deletions(-) diff --git a/openeo/connection.py b/openeo/connection.py index 524dea50e..130a67cf7 100644 --- a/openeo/connection.py +++ b/openeo/connection.py @@ -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: """ diff --git a/openeo/rest/rest_connection.py b/openeo/rest/rest_connection.py index d113a6eca..f45ecde08 100644 --- a/openeo/rest/rest_connection.py +++ b/openeo/rest/rest_connection.py @@ -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