GeoscienceAustralia / dea-notebooks

Repository for Digital Earth Australia Jupyter Notebooks: tools and workflows for geospatial analysis with Open Data Cube and Xarray
https://docs.dea.ga.gov.au/notebooks/
Apache License 2.0
433 stars 127 forks source link

pyTMD.constants moved to pyTMD.constants.solve #1223

Open jessjaco opened 2 months ago

jessjaco commented 2 months ago

I'm getting the error ModuleNotFoundError: No module named 'pyTMD.constants' when trying to run dea_tools.coastal.pixel_tides with dea-tools version 0.3.2 and pyTMD version 2.1.1.

pyTMD.constants, which is imported here: https://github.com/GeoscienceAustralia/dea-notebooks/blob/3d62bb37c77dead10abea20792c8ad51c9fc54dc/Tools/dea_tools/coastal.py#L248 has been moved to pyTMD.solve.constants, as described here. I'm not sure if this module is even needed in the code, but if it is then the code or version required should probably be updated.

jessjaco commented 2 months ago

This issue began with pyTMD version 2.1.1, version 2.1.0 still works.

robbibt commented 2 months ago

Hi @jessjaco, yep, pinning it to 2.10 is the solution for now - there were some big breaking changes in the most recent version of pyTMD that we haven't had a chance to look at yet. 🙂