-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking change in numpy changes the output of PyLanczos! #5
Comments
@LUK4S-B Log
|
Thanks for getting back to this so quickly. You are right that the issue is more subtle and I now created a minimal environment that exhibits the issue and list the pybind version below. For installation, I proceed as follows: conda create -n "lanczos_test"
conda activate lanczos_test
conda install numpy=2.0.2
conda install pip
pip install pylanczos However, I noticed that the issue only arises when performing those installations on a remote server. I am not yet sure why but this might mean that the issue depends on system requirements. Or the reason might be that I use miniforge conda for installation on the server.
However, when I copied this into a file conda env create -f lanc_env.yml
conda activate lanczos_test the issue did not persist on the local machine. So I am not sure anymore why this happens on the remote server. Platform info of remote machine:
Maybe you can try to reproduce the issue using miniforge, and if this also does not give the same results, then it might be necessary to check how things might depend on blas library versions or other dependencies. |
Sorry for the late reply. |
Thanks for getting back to this. Okay, if you tried exactly this |
Numpy was updated to version 2.x. This introduced some breaking changes that apparently strongly affect PyLanczos.
This is the output I get when running PyLanczos version
2.1.1
with the old numpy version1.26.4
:while this is the output when running the same version of PyLanczos
2.1.1
with the new numpy version2.0.2
:The new results are wrong. This needs to be fixed very urgently. It took me a long time to figure out that my code was malfunctioning because of this issue. Presumably it has to do with changes described here in the numpy migration guide.
The text was updated successfully, but these errors were encountered: