You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting, setting warnings.simplefilter("always") makes it show up.
It would seem that some import statement causes the warning to given (and ignored). And because the stacklevel will point into NumPy, the default "once" showing of the warning will mean it is always hidden.
And since this even happens on a vanilla python session, that bad import statement is likely within NumPy itself...
Oh, I am wrong. It must be the special DeprecationWarning logic, trying to not show the warning if it appears to be originating in a dependency (in this case NumPy itself due to the stacklevel).
Even using python -Wonce causes the warning to be shown. The only option we have is to use VisibleDeprecationWarning for a bit. Libraries should be OK, since they hopefully ensure they notice all deprecation warnings at some point.
This is odd, it works as expected for the
.nonzero
method, but not for thenp.nonzero
function:I haven't looked into why this happens.
The deprecation happened in 1.17.0, see gh-13708.
The text was updated successfully, but these errors were encountered: