Skip to content

Filtered out DeprecationPendingWarning for matrix subclass - #3572

Merged
jni merged 5 commits into
scikit-image:masterfrom
emmanuelle:fix_sparsematrix_warnings
Dec 4, 2018
Merged

jni merged 5 commits into
scikit-image:masterfrom
emmanuelle:fix_sparsematrix_warnings

Conversation

@emmanuelle

Copy link
Copy Markdown
Member

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).

@hmaarrfk

hmaarrfk commented Dec 1, 2018

Copy link
Copy Markdown
Member

Nice!!! These were getting annoying

@sciunto

sciunto commented Dec 2, 2018

Copy link
Copy Markdown
Member

Must solve #3571

@sciunto sciunto added the 🔧 type: Maintenance Refactoring and maintenance of internals label Dec 2, 2018
@sciunto sciunto added this to the 0.14.2 milestone Dec 2, 2018
@emmanuelle

Copy link
Copy Markdown
Member Author

Hurray, travis is finally happy :-).

@emmanuelle emmanuelle added the ⚠️ Priority This issue or PR should be given priority label Dec 2, 2018
PYAMG_OR_SCIPY_WARNING = SCIPY_RANK_WARNING + '|' + PYAMG_MISSING_WARNING

if (Version(np.__version__) >= '1.15.0' and
Version(scipy.__version__) <= '1.1.0'):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this line removed? Did scipy 1.1.0 change?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jni

jni commented Dec 3, 2018

Copy link
Copy Markdown
Member

@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...

@jni

jni commented Dec 3, 2018

Copy link
Copy Markdown
Member

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?

@stefanv

stefanv commented Dec 3, 2018

Copy link
Copy Markdown
Member

+1, after integrating the SciPy <1.2 fix.

@pep8speaks

Copy link
Copy Markdown

Hello @emmanuelle! Thanks for updating the PR.

Line 19:21: E127 continuation line over-indented for visual indent

@emmanuelle

Copy link
Copy Markdown
Member Author

@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.

@hmaarrfk

hmaarrfk commented Dec 3, 2018

Copy link
Copy Markdown
Member

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...
scipy/scipy#8887

@emmanuelle

emmanuelle commented Dec 3, 2018 •

Copy link
Copy Markdown
Member Author

@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.

@emmanuelle
emmanuelle force-pushed the fix_sparsematrix_warnings branch from 78ee72a to b6f0156 Compare December 3, 2018 22:01
@hmaarrfk

hmaarrfk commented Dec 3, 2018

Copy link
Copy Markdown
Member

agreed

@sciunto sciunto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind to open an issue once merged please?

@jni
jni merged commit 693bc3d into scikit-image:master Dec 4, 2018
@jni

jni commented Dec 4, 2018

Copy link
Copy Markdown
Member

Good points @emmanuelle, I didn't realise 1.2rc was out. Thanks for handling this!

@soupault soupault modified the milestones: 0.14.2, 0.15 Dec 9, 2018
@hmaarrfk

Copy link
Copy Markdown
Member

@meeseeksdev backport to v0.14.x

jni added a commit that referenced this pull request Jan 1, 2019
…2-on-v0.14.x

Backport PR #3572 on branch v0.14.x (Filtered out DeprecationPendingWarning for matrix subclass)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ Priority This issue or PR should be given priority 🔧 type: Maintenance Refactoring and maintenance of internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants