<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/ma/core.py, branch dependabot/pip/gitpython-3.1.14</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>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://git.baserock.org/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>DOC: more mist fixes of syntax.</title>
<updated>2021-01-29T05:21:16+00:00</updated>
<author>
<name>Matthias Bussonnier</name>
<email>bussonniermatthias@gmail.com</email>
</author>
<published>2021-01-28T17:04:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=7aebdfa50254270085fe6a24206d35d31e43c939'/>
<id>7aebdfa50254270085fe6a24206d35d31e43c939</id>
<content type='text'>
Space before colon, or missing colon in see-also,
typo in parameter names, casing in See Also.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Space before colon, or missing colon in see-also,
typo in parameter names, casing in See Also.
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Avoid using "set of" when talking about an ordered list.</title>
<updated>2020-12-29T20:18:08+00:00</updated>
<author>
<name>Antony Lee</name>
<email>anntzer.lee@gmail.com</email>
</author>
<published>2020-12-29T17:53:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=f36e940a4726abb38c4929259e8eaf00d68c3d18'/>
<id>f36e940a4726abb38c4929259e8eaf00d68c3d18</id>
<content type='text'>
... or when the input isn't/cannot be a set.  I left a few usages, e.g.
in random sampling, where "set" is reasonable as informal description of
an array as the order doesn't matter; however, for e.g. np.gradient the
order of the returned list is clearly important, so "set" is wrong.

Also some other minor doc edits noticed during the grepping: using
`shape` instead of `form` in `cov` is consistent with most other places;
the wording in `Polynomial.trim` now matches other methods on the same
class.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... or when the input isn't/cannot be a set.  I left a few usages, e.g.
in random sampling, where "set" is reasonable as informal description of
an array as the order doesn't matter; however, for e.g. np.gradient the
order of the returned list is clearly important, so "set" is wrong.

Also some other minor doc edits noticed during the grepping: using
`shape` instead of `form` in `cov` is consistent with most other places;
the wording in `Polynomial.trim` now matches other methods on the same
class.
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Replace {var} in docstrings type annotation with `scalar or None`.</title>
<updated>2020-12-07T22:18:31+00:00</updated>
<author>
<name>Matthias Bussonnier</name>
<email>bussonniermatthias@gmail.com</email>
</author>
<published>2020-12-07T22:18:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=03181afa5f57c85a8607d59afaaa5370b127fb1a'/>
<id>03181afa5f57c85a8607d59afaaa5370b127fb1a</id>
<content type='text'>
Closes #17944
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #17944
</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://git.baserock.org/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>DOC: Fixup</title>
<updated>2020-11-05T05:49:47+00:00</updated>
<author>
<name>takanori-pskq</name>
<email>takanori17h@gmail.com</email>
</author>
<published>2020-11-05T05:49:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=e028b1b86f46e9334749f0cb5a102e00715b6442'/>
<id>e028b1b86f46e9334749f0cb5a102e00715b6442</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Prepend `ma.`</title>
<updated>2020-11-04T14:59:42+00:00</updated>
<author>
<name>takanori-pskq</name>
<email>takanori17h@gmail.com</email>
</author>
<published>2020-11-04T14:09:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=3904e990f7027fb9139a52e844376b82e6c718e4'/>
<id>3904e990f7027fb9139a52e844376b82e6c718e4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Fixing references in ma docstrings (#16300)</title>
<updated>2020-10-07T17:34:34+00:00</updated>
<author>
<name>Takanori H</name>
<email>takanori17h@gmail.com</email>
</author>
<published>2020-10-07T17:34:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=2a267e6a49ed68da01761c92deb7c90be207660d'/>
<id>2a267e6a49ed68da01761c92deb7c90be207660d</id>
<content type='text'>
Fix broken links in see also section of some ma functions.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix broken links in see also section of some ma functions.</pre>
</div>
</content>
</entry>
<entry>
<title>fix: chains nested try-except-raise</title>
<updated>2020-10-02T05:32:54+00:00</updated>
<author>
<name>Jovial Joe Jayarson</name>
<email>jovial7joe@hotmail.com</email>
</author>
<published>2020-10-02T05:32:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=c71edcec18d2fdbe391822e7658db43d783e8db0'/>
<id>c71edcec18d2fdbe391822e7658db43d783e8db0</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://git.baserock.org/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>
</feed>
