-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Test errors from inplace power operator #8307
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
Comments
That is a very strange bug, especially if it is OS X specific. Are the actual results correct? If so, I'd suspect a bug in a library, there should be no divisions. |
Ralf, can you check that the ufunc itself works without warnings? I'd like to determine if this is specific to the inplace operator. |
It's not:
It's specific to |
So it is located in the |
And our fallback version of |
So I think it is the Mac |
No, a local build of recent master. Checked PyPI wheel for 1.11.2 - has the same issue.
That fixes it. EDIT: removed last section of this comment, was incorrect. |
Any idea why we didn't detect this earlier? Perhaps Sebastian's work to make sure warnings are cleared correctly is responsible. |
Not sure, but that sounds like a plausible explanation. |
And the error didn't show up on the wheel builds because it was a release. Hmm..., we really need to start testing on the Mac platform. IIRC, we cannot do both on travis. |
iirc travis does support osx hosts for open source, so maybe add one in the matrix? |
Yes, I think travis-ci quietly enabled this feature for open-source accounts a few months ago. See https://github.com/scikit-image/scikit-image/blob/master/.travis.yml#L52 for an example. |
The use of the math library powl was blacklisted on Mac OSX (numpygh-8318) because powl(0, y) would trigger a divide-by-zero warning even when y > 0 (issue numpygh-8307). This change creates npy_powl on OSX that avoids the spurious warning by not calling powl when x = 0 and y > 0. The change in npy_math_internal.h.src moves the handling of pow out of a template repeat-loop, so powl and powf are handled individually. This allows the creation of npy_powl to be specialized when NPY_OS_DARWIN is defined. Closes numpygh-8608.
They're new, likely due to gh-8231. It doesn't happen on all platforms, this is on OS X with Python 3.5:
The 4 test errors:
The text was updated successfully, but these errors were encountered: