-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
CI Fix scipy-dev issues related to numpy 2.0 changes #27190
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @lesteve!
There is one remaining error (see build log) that seems to be a change in The following snippet fails with numpy and scipy dev but works fine with the latest released version of scipy (1.11.2) and numpy (1.25.2): import numpy as np
from scipy.sparse import dok_array
array = np.ones((2, 3))
sparse_array = dok_array(array)
np.may_share_memory(array, sparse_array) Traceback:
We did not see it on August 18 according to #27042 (comment) so this is quite a recent change. |
I think scipy/scipy#18929 is the culprit. |
Yep this is what git bisect is telling me as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thank you, @lesteve.
Should we merge despite the regression in SciPy? |
I think so, this is a clear improvement to the current status (early fail because of ComplexWarning issue) and this gets us closer to having a green scipy-dev build (which is quite a moving target these days ...). |
numpy.core.numeric.ComplexWarning
was removed in numpy dev recentlyhttps://github.com/numpy/numpy/pull/24376/files#diff-68601ddf5a8d7364167feb9c1546348682ed4adbd37ab7c24aa66a43fb874da5
This is causing the scipy-dev build to fail early see this build for example with the following stack-trace:
Edit: more fixes for numpy 2.0 changes while I was at it:
np.infty
->np.inf
np.NaN
->np.nan
np.float_
->np.float64