gee-community / geetools

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

DateRange is also class created upon init #206

Closed 12rambau closed 4 months ago

12rambau commented 5 months ago

When trying to import geetools within an environment that is using earthengine-api < 0.1.388 DateRange is created upon init instead of being define from scratch.

THe consequence is that we get the following error:

.nox/test/lib/python3.9/site-packages/geetools/DateRange/init.py:10: in @register_class_accessor(ee.DateRange, "geetools") E AttributeError: module 'ee' has no attribute 'DateRange'

You cna check looking at this file in the API source code: https://github.com/google/earthengine-api/blame/cdfe00b9d862fa753d647c2788d7d0f4a56bb647/python/ee/daterange.py

12rambau commented 4 months ago

It is still very much a problem as it is still imported in Init file