andsor/pyfssa

Incompatibility with Numpy 2.0

Opened this issue · 0 comments

Numpy 2.0 has removed a lot of aliases to simplify their namespace and that seems to have caused issues here. I tried installing this package on a fresh python install on Windows, i.e.:

conda create -n py312_fss python=3.12 numpy numba scipy matplotlib mkl pip
conda activate py312_fss
pip install fssa

and when importing fssa, I got an error warning me that np.asfarray didn't exist. (I think this has been replaced with supplying the appropriate parameter to np.asarray). I didn't find any others but they may exist too.

The workaround is of course just to install an earlier numpy version, but this seems relatively easy to fix as all that should have been removed is duplicates and aliases.