Repository navigation
Filtered out DeprecationPendingWarning for matrix subclass - #3572
Conversation
|
Nice!!! These were getting annoying |
|
Must solve #3571 |
|
Hurray, travis is finally happy :-). |
| PYAMG_OR_SCIPY_WARNING = SCIPY_RANK_WARNING + '|' + PYAMG_MISSING_WARNING | ||
|
|
||
| if (Version(np.__version__) >= '1.15.0' and | ||
| Version(scipy.__version__) <= '1.1.0'): |
There was a problem hiding this comment.
Why is this line removed? Did scipy 1.1.0 change?
There was a problem hiding this comment.
It should probably be set to < 1.2
https://scipy.github.io/devdocs/release.1.2.0.html
|
@hmaarrfk well, Travis is happy... @emmanuelle maybe you could add/edit item in to-do to point to the relevant issue and PR history here? It might be very useful when all these checks break again... |
|
I take it back, looking at the SciPy 1.2 release notes as suggested by @hmaarrfk, it does look like they will filter things (do a Ctrl-F for "8887"). @emmanuelle can you add the check for SciPy <1.2? |
|
+1, after integrating the |
|
Hello @emmanuelle! Thanks for updating the PR.
|
|
@jni @hmaarrfk @stefanv It does not work as shown by Travis failure for the "pip --pre" build. Indeed the warning is still raised with scipy release candidate (0.12.0rc1), I don't understand exactly why since a PR has been merged which intends to suppress such warnings, but I also checked on my machine and the warning does fire. This is why I had removed the test on scipy version until we know exactly which version of scipy solves the issue. |
|
Now that should have been obvious as your previous builds were passing. Hopefully you can simply undo that commit. Maybe pytest forcibly changes the warnings filters somewhere. Who knows. This was merged in a while back... |
|
@hmaarrfk yes this should be investigated but since it's annoying on the short term that Travis is red, I'll just revert the commit. |
78ee72a to
b6f0156
Compare
|
agreed |
sciunto
left a comment
There was a problem hiding this comment.
Would you mind to open an issue once merged please?
|
Good points @emmanuelle, I didn't realise 1.2rc was out. Thanks for handling this! |
|
@meeseeksdev backport to v0.14.x |
… for matrix subclass
…2-on-v0.14.x Backport PR #3572 on branch v0.14.x (Filtered out DeprecationPendingWarning for matrix subclass)
This PR should fix Travis, current failure is due to uncaught PendingDeprecationWarning raised by scipy sparse operations. Scipy will filter out these warnings in the next release, so it will be possible to remove this cumbersome warnings logics in the future (this was already mentioned in TODO.txt, therefore I didn't have to add it).