gee-community / geetools

A collection of tools to work with Google Earth Engine Python API
https://geetools.readthedocs.io/en/stable/
MIT License
508 stars 121 forks source link

Array object cannot be extended before ee.Initialize() #173

Closed 12rambau closed 2 days ago

12rambau commented 8 months ago

ee.Array object is generated during the call to Initialize() method via https://github.com/google/earthengine-api/blob/8fee1d9e26058a0f21a456772a53d376f76d5e3f/python/ee/__init__.py#L371.

It makes it unreachable at runtime during import statements.

At first I was Initializing ee directly in the method but since users can no longer Initialize without specifying a cloud project, this is not possible without breaking everything.

For the time being I will silence the Array extention alltogether. @jdbcode do you see a alternative solution to be able to extend dynamically created class ? Maybe some rational on why Arrays are not hard coded in the Python API itself ?