Discussion:
[Numpy-discussion] assert_allclose equal_nan default value.
Charles R Harris
2016-10-20 17:16:03 UTC
Permalink
Hi All,

Just a heads up that there is a PR changing the default value of
`equal_nan` to `True` in the `assert_allclose` test function. The
`equal_nan` argument was previously ineffective due to a bug that has
recently been fixed. The current default value of `False` is not backward
compatible and causes test failures in scipy. See the extended argument at
https://github.com/numpy/numpy/pull/8184. I think this change is the right
thing to do but want to make sure everyone is aware of it.

Chuck
Nathan Goldbaum
2016-10-20 17:18:52 UTC
Permalink
Agreed, especially given the prevalence of using this function in
downstream test suites:

https://github.com/search?utf8=%E2%9C%93&q=numpy+assert_allclose&type=Code&ref=searchresults

On Thu, Oct 20, 2016 at 12:16 PM, Charles R Harris <
Post by Charles R Harris
Hi All,
Just a heads up that there is a PR changing the default value of
`equal_nan` to `True` in the `assert_allclose` test function. The
`equal_nan` argument was previously ineffective due to a bug that has
recently been fixed. The current default value of `False` is not backward
compatible and causes test failures in scipy. See the extended argument at
https://github.com/numpy/numpy/pull/8184. I think this change is the
right thing to do but want to make sure everyone is aware of it.
Chuck
_______________________________________________
NumPy-Discussion mailing list
https://mail.scipy.org/mailman/listinfo/numpy-discussion
Benjamin Root
2016-10-20 17:21:40 UTC
Permalink
+1. I was almost always setting it to True anyway.
Post by Nathan Goldbaum
Agreed, especially given the prevalence of using this function in
https://github.com/search?utf8=%E2%9C%93&q=numpy+assert_
allclose&type=Code&ref=searchresults
On Thu, Oct 20, 2016 at 12:16 PM, Charles R Harris <
Post by Charles R Harris
Hi All,
Just a heads up that there is a PR changing the default value of
`equal_nan` to `True` in the `assert_allclose` test function. The
`equal_nan` argument was previously ineffective due to a bug that has
recently been fixed. The current default value of `False` is not backward
compatible and causes test failures in scipy. See the extended argument at
https://github.com/numpy/numpy/pull/8184. I think this change is the
right thing to do but want to make sure everyone is aware of it.
Chuck
_______________________________________________
NumPy-Discussion mailing list
https://mail.scipy.org/mailman/listinfo/numpy-discussion
_______________________________________________
NumPy-Discussion mailing list
https://mail.scipy.org/mailman/listinfo/numpy-discussion
Marten van Kerkwijk
2016-10-20 20:38:27 UTC
Permalink
Good, that means I can revert some changes to astropy, which made the
tests less readable.
-- Marten

Loading...