<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/testing, branch v1.13.2</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: Spelling fixes</title>
<updated>2017-05-09T09:16:14+00:00</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2017-05-09T09:16:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ef5684564e3074daf614846f30bfdd7f15f5254f'/>
<id>ef5684564e3074daf614846f30bfdd7f15f5254f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Remove warning filters from comparison assert functions</title>
<updated>2017-05-07T14:21:30+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2016-12-26T21:55:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=92aa4080f2a925ff6d03d0b9f80460a53d4c111c'/>
<id>92aa4080f2a925ff6d03d0b9f80460a53d4c111c</id>
<content type='text'>
These warning filters are not threadsafe, while it is nicer if the
comparison functions can be called in a threaded environment since
they do no explicite warning checking.

Less filters are also cleaner in general, though may also mean that
downstream projects see warnings that were previously hidden.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These warning filters are not threadsafe, while it is nicer if the
comparison functions can be called in a threaded environment since
they do no explicite warning checking.

Less filters are also cleaner in general, though may also mean that
downstream projects see warnings that were previously hidden.
</pre>
</div>
</content>
</entry>
<entry>
<title>DEP: Add back ndarray.__[sg]etslice__</title>
<updated>2017-04-19T17:39:36+00:00</updated>
<author>
<name>Eric Wieser</name>
<email>wieser.eric@gmail.com</email>
</author>
<published>2017-04-16T22:30:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=f031cdf83593907431ca2666d8484cb1c36315bd'/>
<id>f031cdf83593907431ca2666d8484cb1c36315bd</id>
<content type='text'>
These now delegate to __getitem__, so subclasses no longer need to define them
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These now delegate to __getitem__, so subclasses no longer need to define them
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Remove __setslice__ and __getslice__</title>
<updated>2017-02-09T17:09:27+00:00</updated>
<author>
<name>Eric Wieser</name>
<email>wieser.eric@gmail.com</email>
</author>
<published>2017-02-09T12:51:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=994f8a1dbb137fd4daf881184972637964983ad8'/>
<id>994f8a1dbb137fd4daf881184972637964983ad8</id>
<content type='text'>
This code was only here for Python 2.5 compatibility, but numpy requires 2.7
at minimum
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This code was only here for Python 2.5 compatibility, but numpy requires 2.7
at minimum
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing __tracebackhide__ to testing functions.</title>
<updated>2017-02-05T04:53:18+00:00</updated>
<author>
<name>Antony Lee</name>
<email>anntzer.lee@gmail.com</email>
</author>
<published>2017-02-05T04:53:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=5d5d65be2557fdb9b41f100dd12c5ed594aeb9a3'/>
<id>5d5d65be2557fdb9b41f100dd12c5ed594aeb9a3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure inf/nan removal in assert_array_compare is matrix-safe.</title>
<updated>2017-01-11T17:23:35+00:00</updated>
<author>
<name>Marten van Kerkwijk</name>
<email>mhvk@astro.utoronto.ca</email>
</author>
<published>2017-01-11T15:36:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=960ec0a4eab51ccc33e6a030d870f93300656df4'/>
<id>960ec0a4eab51ccc33e6a030d870f93300656df4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG assert_almost_equal fails on subclasses that cannot handle bool</title>
<updated>2017-01-09T14:40:03+00:00</updated>
<author>
<name>Marten van Kerkwijk</name>
<email>mhvk@astro.utoronto.ca</email>
</author>
<published>2017-01-06T22:12:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=fe46cd691cde2a707ea727d65414cf7285969bbe'/>
<id>fe46cd691cde2a707ea727d65414cf7285969bbe</id>
<content type='text'>
gh-8410 breaks a large number of astropy tests, because it sets up
a boolean array for values that should actually be compared (i.e.,
are not `nan` or `inf`) using `zeros_like`. The latter means that
for subclasses, the boolean test array is not a plain `ndarray` but
the subclass. But for astropy's `Quantity`, the `all` method is
undefined.

This commit ensures the test arrays from `isinf` and `isnan` are
used directly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
gh-8410 breaks a large number of astropy tests, because it sets up
a boolean array for values that should actually be compared (i.e.,
are not `nan` or `inf`) using `zeros_like`. The latter means that
for subclasses, the boolean test array is not a plain `ndarray` but
the subclass. But for astropy's `Quantity`, the `all` method is
undefined.

This commit ensures the test arrays from `isinf` and `isnan` are
used directly.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: corrected behavior for assert_array_less</title>
<updated>2017-01-04T21:36:47+00:00</updated>
<author>
<name>Jonathan Tammo Siebert</name>
<email>siebertjonathan@aim.com</email>
</author>
<published>2016-12-21T17:17:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=777e8c6f2d37e51b375e9be012055356061828d5'/>
<id>777e8c6f2d37e51b375e9be012055356061828d5</id>
<content type='text'>
See issue #2418

assert_array_less does now treat inf/nan
correctly, namely:
-inf &lt; x &lt; inf for any real number x
nans still are not compared, when they occur
at the same position

To achieve this without breaking any other
functions relying on assert_array_compare,
an additional parameter (equal_inf) was
introduced that defaults to the old behavior
(analogous to equal_nan).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See issue #2418

assert_array_less does now treat inf/nan
correctly, namely:
-inf &lt; x &lt; inf for any real number x
nans still are not compared, when they occur
at the same position

To achieve this without breaking any other
functions relying on assert_array_compare,
an additional parameter (equal_inf) was
introduced that defaults to the old behavior
(analogous to equal_nan).
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: Added test that np.inf is not approx. -np.inf</title>
<updated>2017-01-04T21:36:47+00:00</updated>
<author>
<name>Jonathan Tammo Siebert</name>
<email>siebertjonathan@aim.com</email>
</author>
<published>2016-12-19T06:29:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a2f9fe71ce3e2d4a0c8622617a852551feadf01a'/>
<id>a2f9fe71ce3e2d4a0c8622617a852551feadf01a</id>
<content type='text'>
This failed to raise AssertionError in an earlier rewrite of
assert_array_compare and is thus tested explicitly now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This failed to raise AssertionError in an earlier rewrite of
assert_array_compare and is thus tested explicitly now.
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: Added unit tests for assert_array_less</title>
<updated>2017-01-04T21:36:47+00:00</updated>
<author>
<name>Jonathan Tammo Siebert</name>
<email>siebertjonathan@aim.com</email>
</author>
<published>2016-12-19T06:27:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=617707ec85f2ee59e618bce78d9751414c93d6cb'/>
<id>617707ec85f2ee59e618bce78d9751414c93d6cb</id>
<content type='text'>
Added tests for simple arrays/elements,
tests that ensure that nans are not compared when they are in the same
position in both arrays but raise AssertionError when they are not,
and tests that ensure inf logic
(-np.inf &lt; np.inf, 1.0 &lt; np.inf, -np.inf &lt; 1.0)
and that all other cases fail.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added tests for simple arrays/elements,
tests that ensure that nans are not compared when they are in the same
position in both arrays but raise AssertionError when they are not,
and tests that ensure inf logic
(-np.inf &lt; np.inf, 1.0 &lt; np.inf, -np.inf &lt; 1.0)
and that all other cases fail.
</pre>
</div>
</content>
</entry>
</feed>
