<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/array_api/tests, branch meson</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>TST: Move new `asarray` test to a more appropriate place. (#22251)</title>
<updated>2022-09-13T06:20:45+00:00</updated>
<author>
<name>M. Eric Irrgang</name>
<email>ericirrgang@gmail.com</email>
</author>
<published>2022-09-13T06:20:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=4d4fca0cef2e5594a50c1d10a9db6f21aaba0a58'/>
<id>4d4fca0cef2e5594a50c1d10a9db6f21aaba0a58</id>
<content type='text'>
As noted at #21995 (comment), the new test from #21995 was placed in a directory intended for the Array API, and unrelated to the change.

* Consolidate test_dtype_identity into an existing test file.

Remove `test_asarray.py`. Create a new `TestAsArray` suite in
`test_array_coercion.py`

* Linting.

Wrap some comments that got too long after function became
a method (with additional indentation).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As noted at #21995 (comment), the new test from #21995 was placed in a directory intended for the Array API, and unrelated to the change.

* Consolidate test_dtype_identity into an existing test file.

Remove `test_asarray.py`. Create a new `TestAsArray` suite in
`test_array_coercion.py`

* Linting.

Wrap some comments that got too long after function became
a method (with additional indentation).</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #21995 from eirrgang/mei-1468</title>
<updated>2022-09-07T16:55:38+00:00</updated>
<author>
<name>Matti Picus</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2022-09-07T16:55:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=65c10c1cfecb2b3ebd0306ed1c63b103158f80d5'/>
<id>65c10c1cfecb2b3ebd0306ed1c63b103158f80d5</id>
<content type='text'>
BUG: Distinguish exact vs. equivalent dtype for C type aliases.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: Distinguish exact vs. equivalent dtype for C type aliases.</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: fix typo in test_array_object test description (#22071)</title>
<updated>2022-08-02T10:26:42+00:00</updated>
<author>
<name>Ikko Ashimine</name>
<email>eltociear@gmail.com</email>
</author>
<published>2022-08-02T10:26:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=7c8e1134ae86f8a8c002e1068337bec63ddf7f0d'/>
<id>7c8e1134ae86f8a8c002e1068337bec63ddf7f0d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add release note and further clarify tests.</title>
<updated>2022-07-17T18:12:31+00:00</updated>
<author>
<name>M. Eric Irrgang</name>
<email>ericirrgang@gmail.com</email>
</author>
<published>2022-07-17T18:12:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b1a8ff8fa73b744416e12cdd4bb70594717b5336'/>
<id>b1a8ff8fa73b744416e12cdd4bb70594717b5336</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Lint.</title>
<updated>2022-07-17T15:55:59+00:00</updated>
<author>
<name>M. Eric Irrgang</name>
<email>ericirrgang@gmail.com</email>
</author>
<published>2022-07-17T15:55:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=01438a848b029b4fb3d3509c7fd313bc0588bd38'/>
<id>01438a848b029b4fb3d3509c7fd313bc0588bd38</id>
<content type='text'>
Shorten some lines.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Shorten some lines.
</pre>
</div>
</content>
</entry>
<entry>
<title>Expand test_asarray.py.</title>
<updated>2022-07-17T15:49:56+00:00</updated>
<author>
<name>M. Eric Irrgang</name>
<email>ericirrgang@gmail.com</email>
</author>
<published>2022-07-17T15:49:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=e286f461b54c43e2a16b3f6fc6d829936ea28c27'/>
<id>e286f461b54c43e2a16b3f6fc6d829936ea28c27</id>
<content type='text'>
* Improve comments/docs.
* Improve descriptiveness of variable names.
* Add additional test expressions that would not pass without
  this patch.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Improve comments/docs.
* Improve descriptiveness of variable names.
* Add additional test expressions that would not pass without
  this patch.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update comment and obey formatting requirements.</title>
<updated>2022-07-16T20:51:51+00:00</updated>
<author>
<name>M. Eric Irrgang</name>
<email>ericirrgang@gmail.com</email>
</author>
<published>2022-07-16T20:51:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=5651445944bce163a2c3f746d6ac1acd9ae76032'/>
<id>5651445944bce163a2c3f746d6ac1acd9ae76032</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add unit testing.</title>
<updated>2022-07-16T20:27:38+00:00</updated>
<author>
<name>M. Eric Irrgang</name>
<email>ericirrgang@gmail.com</email>
</author>
<published>2022-07-16T20:27:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=81b97607339ac68b27cf72ba7923345d58e2895e'/>
<id>81b97607339ac68b27cf72ba7923345d58e2895e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>API: Allow newaxis indexing for `array_api` arrays (#21377)</title>
<updated>2022-05-06T09:27:27+00:00</updated>
<author>
<name>Matthew Barber</name>
<email>quitesimplymatt@gmail.com</email>
</author>
<published>2022-05-06T09:27:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=befef7b26773eddd2b656a3ab87f504e6cc173db'/>
<id>befef7b26773eddd2b656a3ab87f504e6cc173db</id>
<content type='text'>
* TST: Add test checking if newaxis indexing works for `array_api`

Also removes previous check against newaxis indexing, which is now outdated

* TST, BUG: Allow `None` in `array_api` indexing

Introduces test for validating flat indexing when `None` is present

* MAINT,DOC,TST: Rework of `_validate_index()` in `numpy.array_api`

_validate_index() is now called as self._validate_index(shape), and does not
return a key. This rework removes the recursive pattern used. Tests are
introduced to cover some edge cases. Additionally, its internal docstring
reflects new behaviour, and extends the flat indexing note.

* MAINT: `advance` -&gt; `advanced` (integer indexing)

Co-authored-by: Aaron Meurer &lt;asmeurer@gmail.com&gt;

* BUG: array_api arrays use internal arrays from array_api array keys

When an array_api array is passed as the key for get/setitem, we access the
key's internal np.ndarray array to be used as the key for the internal
get/setitem operation. This behaviour was initially removed when
`_validate_index()` was reworked.

* MAINT: Better flat indexing error message for `array_api` arrays

Also better semantics for its prior ellipsis count condition

Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;

* MAINT: `array_api` arrays don't special case multi-ellipsis errors

This gets handled by NumPy-proper.

Co-authored-by: Aaron Meurer &lt;asmeurer@gmail.com&gt;
Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* TST: Add test checking if newaxis indexing works for `array_api`

Also removes previous check against newaxis indexing, which is now outdated

* TST, BUG: Allow `None` in `array_api` indexing

Introduces test for validating flat indexing when `None` is present

* MAINT,DOC,TST: Rework of `_validate_index()` in `numpy.array_api`

_validate_index() is now called as self._validate_index(shape), and does not
return a key. This rework removes the recursive pattern used. Tests are
introduced to cover some edge cases. Additionally, its internal docstring
reflects new behaviour, and extends the flat indexing note.

* MAINT: `advance` -&gt; `advanced` (integer indexing)

Co-authored-by: Aaron Meurer &lt;asmeurer@gmail.com&gt;

* BUG: array_api arrays use internal arrays from array_api array keys

When an array_api array is passed as the key for get/setitem, we access the
key's internal np.ndarray array to be used as the key for the internal
get/setitem operation. This behaviour was initially removed when
`_validate_index()` was reworked.

* MAINT: Better flat indexing error message for `array_api` arrays

Also better semantics for its prior ellipsis count condition

Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;

* MAINT: `array_api` arrays don't special case multi-ellipsis errors

This gets handled by NumPy-proper.

Co-authored-by: Aaron Meurer &lt;asmeurer@gmail.com&gt;
Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Note `np.array_api.can_cast()` does not use `np.can_cast()`</title>
<updated>2022-02-09T08:44:07+00:00</updated>
<author>
<name>Matthew Barber</name>
<email>quitesimplymatt@gmail.com</email>
</author>
<published>2022-02-09T08:35:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=995f5464b6c5d8569e159a96c6af106721a4e6d5'/>
<id>995f5464b6c5d8569e159a96c6af106721a4e6d5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
