<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/testing/_private, branch maintenance/1.16.x</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>ENH: Backport improvements to testing functions.</title>
<updated>2019-12-25T21:12:47+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2019-12-25T19:36:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=4e6d516c6d620ac9ec867c9ec4726a08f34af1e5'/>
<id>4e6d516c6d620ac9ec867c9ec4726a08f34af1e5</id>
<content type='text'>
This improves the documentation and error messages of the testing
functions and extends `numpy.testing.assert_array_compare` to
more data types.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This improves the documentation and error messages of the testing
functions and extends `numpy.testing.assert_array_compare` to
more data types.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fixed maximum relative error reporting in assert_allclose (gh-13802)</title>
<updated>2019-09-05T20:43:36+00:00</updated>
<author>
<name>CakeWithSteak</name>
<email>37267737+CakeWithSteak@users.noreply.github.com</email>
</author>
<published>2019-09-05T14:20:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=9621473347ecdbb8812c967950ed1b93c5b865cc'/>
<id>9621473347ecdbb8812c967950ed1b93c5b865cc</id>
<content type='text'>
Fixed maximum relative error reporting in assert_allclose:

In cases where the two arrays have zeros at the same positions it will
no longer report nan as the max relative error</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed maximum relative error reporting in assert_allclose:

In cases where the two arrays have zeros at the same positions it will
no longer report nan as the max relative error</pre>
</div>
</content>
</entry>
<entry>
<title>TEST, ENH: fix tests and ctypes code for PyPy</title>
<updated>2019-06-24T13:57:13+00:00</updated>
<author>
<name>mattip</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2019-06-23T19:12:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=bfd4bed8dc464102bd69db6f72217cf29c03358c'/>
<id>bfd4bed8dc464102bd69db6f72217cf29c03358c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: special case object arrays when printing rel-, abs-error</title>
<updated>2019-05-27T18:56:46+00:00</updated>
<author>
<name>mattip</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2019-05-27T17:17:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=6a2ef001f8c91970000318cd11ac0e3c69cc63db'/>
<id>6a2ef001f8c91970000318cd11ac0e3c69cc63db</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: add "max difference" messages to np.testing.assert_array_equal (#12591)</title>
<updated>2019-01-17T02:20:08+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@gmail.com</email>
</author>
<published>2019-01-02T06:50:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=c13b3a93d302724401fb0b996c4734a0c0d71fad'/>
<id>c13b3a93d302724401fb0b996c4734a0c0d71fad</id>
<content type='text'>
Example behavior:

&gt;&gt;&gt; x = np.array([1, 2, 3])
&gt;&gt;&gt; y = np.array([1, 2, 3.0001])
&gt;&gt;&gt; np.testing.assert_allclose(x, y)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0

Mismatch: 33.3%
Max absolute difference: 0.0001
Max relative difference: 3.33322223e-05
 x: array([1, 2, 3])
 y: array([1.    , 2.    , 3.0001])

Motivation: when writing numerical algorithms, I frequently find myself
experimenting to pick the right value of `atol` and `rtol` for
`np.testing.assert_allclose()`. If I make the tolerance too generous, I risk
missing regressions in accuracy, so I usually try to pick the smallest values
for which tests pass. This change immediately reveals appropriate values to
use for these parameters, so I don't need to guess and check.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Example behavior:

&gt;&gt;&gt; x = np.array([1, 2, 3])
&gt;&gt;&gt; y = np.array([1, 2, 3.0001])
&gt;&gt;&gt; np.testing.assert_allclose(x, y)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0

Mismatch: 33.3%
Max absolute difference: 0.0001
Max relative difference: 3.33322223e-05
 x: array([1, 2, 3])
 y: array([1.    , 2.    , 3.0001])

Motivation: when writing numerical algorithms, I frequently find myself
experimenting to pick the right value of `atol` and `rtol` for
`np.testing.assert_allclose()`. If I make the tolerance too generous, I risk
missing regressions in accuracy, so I usually try to pick the smallest values
for which tests pass. This change immediately reveals appropriate values to
use for these parameters, so I don't need to guess and check.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Review F401,F841,F842 flake8 errors (unused variables and imports) (#12448)</title>
<updated>2018-12-06T19:05:08+00:00</updated>
<author>
<name>Roman Yurchak</name>
<email>rth.yurchak@pm.me</email>
</author>
<published>2018-12-06T19:05:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=45cef38cda80868355a920b5e94211dcf662ea07'/>
<id>45cef38cda80868355a920b5e94211dcf662ea07</id>
<content type='text'>
* Review F401,F841,F842 flake8 errors (unused variables, imports)

* Review comments

* More tests in test_installed_npymath_ini

* Review comments
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Review F401,F841,F842 flake8 errors (unused variables, imports)

* Review comments

* More tests in test_installed_npymath_ini

* Review comments
</pre>
</div>
</content>
</entry>
<entry>
<title>Use set litterals</title>
<updated>2018-11-24T19:59:42+00:00</updated>
<author>
<name>Roman Yurchak</name>
<email>rth.yurchak@pm.me</email>
</author>
<published>2018-11-24T19:59:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=09992482c93f1b9e28b7958a792e6b3b709834fa'/>
<id>09992482c93f1b9e28b7958a792e6b3b709834fa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #12243 from liwt31/fix_misleading_msg</title>
<updated>2018-10-23T09:35:38+00:00</updated>
<author>
<name>Matti Picus</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2018-10-23T09:35:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=7fbcc4eaf22a01ac3282179b49c6363485263fbf'/>
<id>7fbcc4eaf22a01ac3282179b49c6363485263fbf</id>
<content type='text'>
BUG: Fix misleading assert message in assert_almost_equal #12200</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: Fix misleading assert message in assert_almost_equal #12200</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fix misleading assert message in assert_almost_equal #12200</title>
<updated>2018-10-23T08:29:35+00:00</updated>
<author>
<name>wtli@Dirac</name>
<email>liwt31@163.com</email>
</author>
<published>2018-10-22T14:30:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=be5ea7d92d542e7c7eb055c5831a79850f4bfbee'/>
<id>be5ea7d92d542e7c7eb055c5831a79850f4bfbee</id>
<content type='text'>
Fixes #12200 by making a copy of the matrix before NaN's are excluded.
Add a test for it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #12200 by making a copy of the matrix before NaN's are excluded.
Add a test for it.
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: __array_function__ support for np.lib, part 2/2 (#12119)</title>
<updated>2018-10-23T00:40:08+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@gmail.com</email>
</author>
<published>2018-10-23T00:40:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=73151451437fa6ce0d8b5f033c1e005885f63cf8'/>
<id>73151451437fa6ce0d8b5f033c1e005885f63cf8</id>
<content type='text'>
* ENH: __array_function__ support for np.lib, part 2

xref GH12028

np.lib.npyio through np.lib.ufunclike

* Fix failures in numpy/core/tests/test_overrides.py

* CLN: handle depreaction in dispatchers for np.lib.ufunclike

* CLN: fewer dispatchers in lib.twodim_base

* CLN: fewer dispatchers in lib.shape_base

* CLN: more dispatcher consolidation

* BUG: fix test failure

* Use all method instead of function in assert_equal

* DOC: indicate n is array_like in scimath.logn

* MAINT: updates per review

* MAINT: more conservative changes in assert_array_equal

* MAINT: add back in comment

* MAINT: casting tweaks in assert_array_equal

* MAINT: fixes and tests for assert_array_equal on subclasses
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* ENH: __array_function__ support for np.lib, part 2

xref GH12028

np.lib.npyio through np.lib.ufunclike

* Fix failures in numpy/core/tests/test_overrides.py

* CLN: handle depreaction in dispatchers for np.lib.ufunclike

* CLN: fewer dispatchers in lib.twodim_base

* CLN: fewer dispatchers in lib.shape_base

* CLN: more dispatcher consolidation

* BUG: fix test failure

* Use all method instead of function in assert_equal

* DOC: indicate n is array_like in scimath.logn

* MAINT: updates per review

* MAINT: more conservative changes in assert_array_equal

* MAINT: add back in comment

* MAINT: casting tweaks in assert_array_equal

* MAINT: fixes and tests for assert_array_equal on subclasses
</pre>
</div>
</content>
</entry>
</feed>
