Skip to content

Commit 29754a1

Browse files
committed
deprecate load_disk_collection
#467
1 parent c4cea5d commit 29754a1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

openeo/rest/connection.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,12 +1657,18 @@ def service(self, service_id: str) -> Service:
16571657
"""
16581658
return Service(service_id, connection=self)
16591659

1660+
@deprecated(
1661+
reason="Depends on non-standard process, replace with :py:meth:`openeo.rest.connection.Connection.load_stac` where possible.",
1662+
version="0.25.0")
16601663
def load_disk_collection(
16611664
self, format: str, glob_pattern: str, options: Optional[dict] = None
16621665
) -> DataCube:
16631666
"""
16641667
Loads image data from disk as a :py:class:`DataCube`.
16651668
1669+
This is backed by a non-standard process ('load_disk_data'). This will eventually be replaced by standard options such as
1670+
:py:meth:`openeo.rest.connection.Connection.load_stac` or https://processes.openeo.org/#load_uploaded_files
1671+
16661672
:param format: the file format, e.g. 'GTiff'
16671673
:param glob_pattern: a glob pattern that matches the files to load from disk
16681674
:param options: options specific to the file format

openeo/rest/datacube.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,13 @@ def load_collection(
217217
load_collection, name="create_collection", since="0.4.6"
218218
)
219219

220+
@deprecated(reason="Depends on non-standard process, replace with :py:meth:`openeo.rest.connection.Connection.load_stac` where possible.",version="0.25.0")
220221
@classmethod
221222
def load_disk_collection(cls, connection: Connection, file_format: str, glob_pattern: str, **options) -> DataCube:
222223
"""
223224
Loads image data from disk as a DataCube.
224225
This is backed by a non-standard process ('load_disk_data'). This will eventually be replaced by standard options such as
225-
https://processes.openeo.org/#load_uploaded_files
226+
:py:meth:`openeo.rest.connection.Connection.load_stac` or https://processes.openeo.org/#load_uploaded_files
226227
227228
228229
:param connection: The connection to use to connect with the backend.

0 commit comments

Comments
 (0)