<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/testing/tests, branch pr/12889</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>ENH: __array_function__ updates for NumPy 1.17.0</title>
<updated>2019-01-22T22:13:39+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@google.com</email>
</author>
<published>2019-01-22T22:07:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=96d179ce5bd0e3f75508f6afdfb2fb65170cc83c'/>
<id>96d179ce5bd0e3f75508f6afdfb2fb65170cc83c</id>
<content type='text'>
- Always enable __array_function__ overrides.
- Remove special cases for Python 2 compatibility.
- Document these changes in 1.17.0-notes.rst.

It will be good to see ASV numbers to understand the performance implications
of these changes. If need be, we can speed up NumPy functions internally by
using non-dispatched functions (with ``.__wrapped__``).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Always enable __array_function__ overrides.
- Remove special cases for Python 2 compatibility.
- Document these changes in 1.17.0-notes.rst.

It will be good to see ASV numbers to understand the performance implications
of these changes. If need be, we can speed up NumPy functions internally by
using non-dispatched functions (with ``.__wrapped__``).
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: add "max difference" messages to np.testing.assert_array_equal (#12591)</title>
<updated>2019-01-02T06:50:29+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://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=a16fc9499eaa7cc9d7532f8a51725c6ed647cd1b'/>
<id>a16fc9499eaa7cc9d7532f8a51725c6ed647cd1b</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://91.123.203.49/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>MAINT: more fixes for disabling overrides</title>
<updated>2018-11-11T00:12:18+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@google.com</email>
</author>
<published>2018-11-11T00:12:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=b44284ebc42c496e5c5d906acc33ebbc337fd3b1'/>
<id>b44284ebc42c496e5c5d906acc33ebbc337fd3b1</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://91.123.203.49/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://91.123.203.49/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://91.123.203.49/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>
<entry>
<title>TST: improve parallel test stability for warnings</title>
<updated>2018-09-24T03:48:46+00:00</updated>
<author>
<name>Tyler Reddy</name>
<email>tyler.je.reddy@gmail.com</email>
</author>
<published>2018-09-24T03:48:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=2f44aff7414fbca294d3309814dc60caf3cfae02'/>
<id>2f44aff7414fbca294d3309814dc60caf3cfae02</id>
<content type='text'>
* previously, stochastic failures were possible
when running the NumPy test suite in parallel
because of an assumption made by assert_warn_len_equal()

* we now guard against this failure by gracefully
handling the testing contexts of both serial and
parallel execution of the module
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* previously, stochastic failures were possible
when running the NumPy test suite in parallel
because of an assumption made by assert_warn_len_equal()

* we now guard against this failure by gracefully
handling the testing contexts of both serial and
parallel execution of the module
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: Replace calls to unittest.TestCase.fail (#11933)</title>
<updated>2018-09-13T02:49:37+00:00</updated>
<author>
<name>Roman Yurchak</name>
<email>rth.yurchak@pm.me</email>
</author>
<published>2018-09-13T02:49:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=88cbd3d857db84cf820a6210fde14814f1d1d92b'/>
<id>88cbd3d857db84cf820a6210fde14814f1d1d92b</id>
<content type='text'>
After the pytest migration, test classes no longer inherit
from unittest.TestCase and and the fail method does not
exist anymore.

In all these cases, we can use assert_raises and assert_raises_regex instead
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After the pytest migration, test classes no longer inherit
from unittest.TestCase and and the fail method does not
exist anymore.

In all these cases, we can use assert_raises and assert_raises_regex instead
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: remove redundant imports</title>
<updated>2018-09-09T04:50:32+00:00</updated>
<author>
<name>mattip</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2018-09-08T17:24:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=5e3412dfc139b733b136c2c3b508eb7bf7b8ec10'/>
<id>5e3412dfc139b733b136c2c3b508eb7bf7b8ec10</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
