ktindiana / sphinxval

SPHINX validation code for solar energetic particle models
MIT License
3 stars 3 forks source link

Bug: match.py fails to run with pandas >= 2.0.0 #18

Closed lukestegeman closed 9 months ago

lukestegeman commented 9 months ago

SPHINX fails to run when the active Python installation includes pandas version >= 2.0.0. This happens because the timedelta64 unit conversions (from nanoseconds to hours) in is_time_before() and is_time_before_thresh() are no longer available. Working on a quick fix via manual conversion.

lukestegeman commented 9 months ago

I will update this issue with up-to-date module versions after fixing.

lukestegeman commented 9 months ago

My current module dependencies:

numpy==1.26.1 matplotlib==3.8.0 pandas==2.1.1 tabulate==0.9.0 astropy==5.3.4 scikit-learn==1.3.1 scipy==1.11.3 zulu==2.0.0 cycler==0.12.1 seaborn==0.13.0 PyPDF2==3.0.1 markdown==3.5

lukestegeman commented 9 months ago

Dependencies listed in requirements.txt:

numpy==1.23.3 matplotlib==3.5.3 pandas==1.4.4 tabulate==0.9.0 astropy==5.1 scikit-learn==1.1.2 scipy==1.9.1 zulu==2.0.0 cycler==0.10.0 seaborn==0.12.0

lukestegeman commented 9 months ago

Reverted to Python 3.10.5 to fall in line with established required dependencies.