-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
np.testing.assert_allclose does not match np.allclose #7726
Comments
Yes, they have different defaults for the There's some long discussion we had about this that you can probably find if you search... IIRC it got bogged down with the folks who use |
Previous discussion: http://thread.gmane.org/gmane.comp.python.numeric.general/58235/ So this is a wontfix, closing the issue. |
OK I understand that you won't fix it, but at least please don't claim in the documentation that they're equivalent! I know the documentation has a disclaimer that says "note that allclose has different default values", but the sentence "The test is equivalent to allclose(actual, desired, rtol, atol)" is very confusing. |
Can you suggest a less confusing version? |
Suggestion, maybe something like the following? "Due to different default parameter values, its behaviour is different to |
Here is the reproduced bug below from running iPython to reproduce what happened in the code. Basically, np.testing.assert_allclose does not match np.allclose. Meaning np.allclose returned true but np.testing.assert_allclose raised an error in this case.
The text was updated successfully, but these errors were encountered: