jdtuck / fdasrsf_python

elastic fda python code
http://research.tetonedge.net
BSD 3-Clause "New" or "Revised" License
52 stars 18 forks source link

Support SciPy 1.14 #57

Closed vnmabus closed 2 months ago

vnmabus commented 2 months ago

The recent version of SciPy, 1.14, removes the old names of some integration routines, as the deprecation process ended. This causes problems in fdasrsf, as the old names are still in use:

from fdasrsf.utility_functions import optimum_reparam
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/fdasrsf/__init__.py:93: in <module>
    from .curve_pcr_regression import elastic_curve_pcr_regression
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/fdasrsf/curve_pcr_regression.py:15: in <module>
    from scipy.integrate import trapz, cumtrapz
E   ImportError: cannot import name 'trapz' from 'scipy.integrate' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/scipy/integrate/__init__.py)

This should be fixed in order to work with that version of SciPy.

jdtuck commented 2 months ago

fixed in master and new version released