<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/ma/tests, branch dependabot/pip/gitpython-3.1.14</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>BUG: Allow unmodified use of isclose, allclose, etc. with timedelta</title>
<updated>2021-02-04T20:35:12+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2021-02-04T20:16:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=bcb168a56d1c47b877568ce51ce90a1ced89f007'/>
<id>bcb168a56d1c47b877568ce51ce90a1ced89f007</id>
<content type='text'>
Disallowing timedelta64+float promotion (to timedelta64) in all cases
(previously it was assymetric and "half allowed") meant that isclose,
allclose, np.ma.allclose, and assert_arrays_almost_equal (which uses
isclose), would stop work for timedelta64. Hardcoding that timedelta64
is passed on unmodified retains the old behaviour.

It may make sense to deprecate or change this behaviour in the future,
but for the 1.20 release, the behaviour should be as much unmodified
as possible.

Closes gh-18286
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Disallowing timedelta64+float promotion (to timedelta64) in all cases
(previously it was assymetric and "half allowed") meant that isclose,
allclose, np.ma.allclose, and assert_arrays_almost_equal (which uses
isclose), would stop work for timedelta64. Hardcoding that timedelta64
is passed on unmodified retains the old behaviour.

It may make sense to deprecate or change this behaviour in the future,
but for the 1.20 release, the behaviour should be as much unmodified
as possible.

Closes gh-18286
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: ma: Remove unused `**options` from MaskedArray `__new__` method.</title>
<updated>2020-11-08T08:42:59+00:00</updated>
<author>
<name>Warren Weckesser</name>
<email>warren.weckesser@gmail.com</email>
</author>
<published>2020-11-08T08:24:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=0e894153d7ac241c770286bd8c100c9c269dc44e'/>
<id>0e894153d7ac241c770286bd8c100c9c269dc44e</id>
<content type='text'>
The `__new__` method of `MaskedArray` has the parameter `**options`,
but it is not used.  This means a mistyped parameter is silently ignored,
e.g. if I mistype the `mask` parameter like this, I don't get an error:

    In [2]: m = np.ma.MaskedArray([1, 2, 3], maks=[0, 1, 0])

    In [3]: m
    Out[3]:
    masked_array(data=[1, 2, 3],
                 mask=False,
           fill_value=999999)

In this PR, I simply remove `**options` from the signature of
`MaskedArray.__new__`.  This affected one test.  That test was passing the
argument `shape=(0, 1, 2)` to the constructor of a subclass of `MaskedArray`,
but since any unknown keywords were silently ignored, that use of `shape` had
no effect.  I replaced it with the positional argument `[[[]], [[]]]`, which
I believe has the effect that was originally intended with the use of the
`shape` argument.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `__new__` method of `MaskedArray` has the parameter `**options`,
but it is not used.  This means a mistyped parameter is silently ignored,
e.g. if I mistype the `mask` parameter like this, I don't get an error:

    In [2]: m = np.ma.MaskedArray([1, 2, 3], maks=[0, 1, 0])

    In [3]: m
    Out[3]:
    masked_array(data=[1, 2, 3],
                 mask=False,
           fill_value=999999)

In this PR, I simply remove `**options` from the signature of
`MaskedArray.__new__`.  This affected one test.  That test was passing the
argument `shape=(0, 1, 2)` to the constructor of a subclass of `MaskedArray`,
but since any unknown keywords were silently ignored, that use of `shape` had
no effect.  I replaced it with the positional argument `[[[]], [[]]]`, which
I believe has the effect that was originally intended with the use of the
`shape` argument.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Conversion of some strings to fstrings, part III (#17623)</title>
<updated>2020-10-25T18:47:15+00:00</updated>
<author>
<name>jakobjakobson13</name>
<email>43045863+jakobjakobson13@users.noreply.github.com</email>
</author>
<published>2020-10-25T18:47:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=ca39060bd4f98657139f782ff9c02a1f095ed3dc'/>
<id>ca39060bd4f98657139f782ff9c02a1f095ed3dc</id>
<content type='text'>
* Conversion of some strings to fstrings

* Remove spaces

* Update numpy/ma/mrecords.py

Co-authored-by: Bas van Beek &lt;43369155+BvB93@users.noreply.github.com&gt;

* Update numpy/ma/tests/test_old_ma.py

Co-authored-by: Bas van Beek &lt;43369155+BvB93@users.noreply.github.com&gt;

* Update numpy/ma/timer_comparison.py

Co-authored-by: Bas van Beek &lt;43369155+BvB93@users.noreply.github.com&gt;

Co-authored-by: Jakob &lt;jakobjakobson13@posteo.de&gt;
Co-authored-by: Bas van Beek &lt;43369155+BvB93@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Conversion of some strings to fstrings

* Remove spaces

* Update numpy/ma/mrecords.py

Co-authored-by: Bas van Beek &lt;43369155+BvB93@users.noreply.github.com&gt;

* Update numpy/ma/tests/test_old_ma.py

Co-authored-by: Bas van Beek &lt;43369155+BvB93@users.noreply.github.com&gt;

* Update numpy/ma/timer_comparison.py

Co-authored-by: Bas van Beek &lt;43369155+BvB93@users.noreply.github.com&gt;

Co-authored-by: Jakob &lt;jakobjakobson13@posteo.de&gt;
Co-authored-by: Bas van Beek &lt;43369155+BvB93@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Remove old sys.version_info code</title>
<updated>2020-09-03T10:46:30+00:00</updated>
<author>
<name>Hugo</name>
<email>hugovk@users.noreply.github.com</email>
</author>
<published>2020-09-02T13:43:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=d09e192f05fae7d2e13735c82714b0bc140a0d9f'/>
<id>d09e192f05fae7d2e13735c82714b0bc140a0d9f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Undo change of how 0-D array-likes are handled as scalars</title>
<updated>2020-07-08T23:13:06+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2020-06-18T16:06:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=56c63d8660ba75d6947c6c5f16abc93affbaf793'/>
<id>56c63d8660ba75d6947c6c5f16abc93affbaf793</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Fix ``np.ma.core.doc_note`` (#16311)</title>
<updated>2020-06-09T15:26:15+00:00</updated>
<author>
<name>Takanori H</name>
<email>takanori17h@gmail.com</email>
</author>
<published>2020-06-09T15:26:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=ad30b31af0bb3fbfdc0f11486807edc76cec2680'/>
<id>ad30b31af0bb3fbfdc0f11486807edc76cec2680</id>
<content type='text'>
* fix np.ma.core.doc_note</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* fix np.ma.core.doc_note</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: max/min of a masked array dtype fix (gh-15991)</title>
<updated>2020-05-14T23:05:15+00:00</updated>
<author>
<name>Rakesh Vasudevan</name>
<email>rakesh.nvasudev@gmail.com</email>
</author>
<published>2020-05-14T23:05:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=8b81727c50fd7dcb99e4644e8d76f2eaedc4d066'/>
<id>8b81727c50fd7dcb99e4644e8d76f2eaedc4d066</id>
<content type='text'>
Fix for issue gh-15077. ma.core now checks and sets max and min
values for all float and complex dtypes. This fixes the max of a
masked array with a float16 or complex dtype returning inf

Builds on top of gh-15086.

Co-authored-by: William Jones &lt;william.jones@physics.ox.ac.uk&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix for issue gh-15077. ma.core now checks and sets max and min
values for all float and complex dtypes. This fixes the max of a
masked array with a float16 or complex dtype returning inf

Builds on top of gh-15086.

Co-authored-by: William Jones &lt;william.jones@physics.ox.ac.uk&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: fix AttributeError on accessing object in nested MaskedArray. (#15949)</title>
<updated>2020-04-25T18:23:58+00:00</updated>
<author>
<name>RenaRuirui</name>
<email>renaxu@umich.edu</email>
</author>
<published>2020-04-25T18:23:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=619422b493eaf88c42373af1725ac0aa2297fa91'/>
<id>619422b493eaf88c42373af1725ac0aa2297fa91</id>
<content type='text'>
* BUG: fix AttributeError on accessing object in nested MaskedArray
Co-authored-by: Rena Xu &lt;renaxu@Renas-MacBook-Pro.local&gt;
Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
Co-authored-by: vagrant &lt;vagrant@vagrant.vm&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* BUG: fix AttributeError on accessing object in nested MaskedArray
Co-authored-by: Rena Xu &lt;renaxu@Renas-MacBook-Pro.local&gt;
Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
Co-authored-by: vagrant &lt;vagrant@vagrant.vm&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #15867 from eric-wieser/deprecate-tostring</title>
<updated>2020-04-01T09:23:05+00:00</updated>
<author>
<name>Matti Picus</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2020-04-01T09:23:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=ad5d58c29ab4793cd66afa07eed0f77c7ad59dc4'/>
<id>ad5d58c29ab4793cd66afa07eed0f77c7ad59dc4</id>
<content type='text'>
DEP: Deprecate ndarray.tostring()</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
DEP: Deprecate ndarray.tostring()</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Clean-up 'next = __next__' used for Python 2 compatibility</title>
<updated>2020-03-31T22:14:07+00:00</updated>
<author>
<name>Mike Taves</name>
<email>mwtoews@gmail.com</email>
</author>
<published>2020-03-31T22:14:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=30f83916c90317b43eb36280bb70a928a15b75e6'/>
<id>30f83916c90317b43eb36280bb70a928a15b75e6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
