Skip to content

Commit

Permalink
fix: use the fuly static definition of GEE
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau authored Sep 30, 2024
1 parent f7db06c commit eb51805
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 40 deletions.
12 changes: 0 additions & 12 deletions docs/usage/layout.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ Earth Engine classes
ee.Array
^^^^^^^^

As reported in https://github.com/gee-community/geetools/issues/173, this object cannot be extended before the API of Earth Enfine is initialized. So to use the following methods, you will be forced to manually import the following:

.. code-block:: python
from geetools.Array import ArrayAccessor
constructor
###########

Expand Down Expand Up @@ -94,12 +88,6 @@ helper
ee.DateRange
^^^^^^^^^^^^

As reported in https://github.com/gee-community/geetools/issues/206, this object cannot be extended before the API of Earth Enfine is initialized. So to use the following methods, you will be forced to manually import the following:

.. code-block:: python
from geetools.DateRange import DateRangeAccessor
Extra operations
################

Expand Down
12 changes: 1 addition & 11 deletions geetools/Array/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
"""Extra methods for the ``ee.Array`` class.
.. warning::
As reported in https://github.com/gee-community/geetools/issues/173, this object cannot be extended before the API of
Earth Enfine is initialized. So to use the following methods, you will be forced to manually import the following:
.. code-block:: python
from geetools.Array import ArrayAccessor
"""
"""Extra methods for the ``ee.Array`` class."""
from __future__ import annotations

import ee
Expand Down
13 changes: 1 addition & 12 deletions geetools/DateRange/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
"""Extra tools for the ``ee.DateRange`` class.
.. warning::
As reported in https://github.com/gee-community/geetools/issues/206, for user using ``earthengine-api<=0.1.388``
this object cannot be extended before the API of Earth Enfine is initialized. So to use the
following methods, you will be forced to manually import the following:
.. code-block:: python
from geetools.DateRange import DateRangeAccessor
"""
"""Extra tools for the ``ee.DateRange`` class."""
from __future__ import annotations

import ee
Expand Down
4 changes: 2 additions & 2 deletions geetools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
# waiting for a fix in
# https://github.com/gee-community/geetools/issues/173
# https://github.com/gee-community/geetools/issues/206
# from .Array import ArrayAccessor
# from .DateRange import DateRangeAccessor
from .Array import ArrayAccessor
from .DateRange import DateRangeAccessor


__title__ = "geetools"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [
]
requires-python = ">=3.9"
dependencies = [
"earthengine-api>=0.1.397", # support for ee.data.createFolder
"earthengine-api>=1", # fully static implementation
"requests",
"pandas",
"geopandas",
Expand Down
1 change: 0 additions & 1 deletion tests/test_Array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import pytest

import geetools
from geetools.Array import ArrayAccessor # noqa: F401


class TestFull:
Expand Down
1 change: 0 additions & 1 deletion tests/test_DateRange.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import pytest

import geetools
from geetools.DateRange import DateRangeAccessor # noqa: F401


class TestSplit:
Expand Down

0 comments on commit eb51805

Please sign in to comment.