| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Port CORE diff relevant code to MA and adapt docstrings examples and add tsts.
Closes gh-22465
|
|
|
|
|
|
|
| |
* DOC: Add example for np.ma.diag as part of numpy#22269
* Add descriptions to example.
* Fix typo.
|
| |
|
|
|
|
|
|
|
|
| |
Matplotlib relies on this, so we don't seem to have much of a choice.
I am surprised that we were not notified of the issue before release
time.
Closes gh-22720, gh-22720
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the minimal solution to fix gh-22826 with as little change
as possible.
We should fix `getdata()` but I don't want to do that in a bug-fix
release really.
IMO the alternative is to revert gh-22046 which would also revert
the behavior noticed in gh-22720 (which seems less harmful though).
Closes gh-22826
|
|\
| |
| | |
BUG: `keepdims=True` is ignored if `out` is not `None` in `numpy.median`.
|
| |
| |
| |
| |
| |
| | |
`numpy.percentile()`, and `numpy.quantile()`.
Closes #22714, #22544.
|
|\ \
| |/
|/| |
BENCH: Update MaskedArray Benchmarks
|
| | |
|
|/
|
|
|
|
|
| |
This PR Closes gh-17046.
The problem was that when calling mask=None, the array creation took seconds compared to the microseconds needed when calling mask=False.
Using `mask=None` is a bit dubious, since it has a different meaning from the default `mask=nomask`, but the speed trap is so hard to find, that it seems pragmatic to support it. OTOH, it also would seem fine to deprecate the whole path (or maybe see if the path can be sped up so that the speed difference isn't forbidding eough to bother).
|
|\
| |
| | |
DOC: Clarify docstring of `masked_equal` and `masked_values`
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
ENH, CI: Add Emscripten to CI
|
| | | |
|
|/ /
| |
| |
| | |
Xref https://github.com/numpy/numpy/pull/22228
|
| |
| |
| |
| | |
Not new things, but in touched lines...
|
| |
| |
| |
| |
| |
| |
| |
| | |
In some cases, the replacement is clearly not what is intended,
in those (where setup was called explicitly), I mostly renamed
`setup` to `_setup`.
The `test_ccompile_opt` is a bit confusing, so left it right now
(this will probably fail)
|
|/ |
|
|\
| |
| | |
DEP: Deprecate conversion of out-of-bound Python integers
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This wraps the fill value into an array, the default fill value for all
ointegers is 99999 which doesn't work for many integer dtypes.
Note that this might still subtle change the behavior in other
code paths where we cannot avoid this. Plus, the deprecationwarning
may show up (and in fact be a "in the future will use the default
fill value" warning).
|
| |
| |
| |
| | |
This PR is partially addressing #22269
Added examples for ma.round and ma.round_
|
|\ \
| | |
| | | |
BUG: Make `mask_invalid` consistent with `mask_where` if `copy` is set to `False`
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
test for type erroring.
|
| | | |
|
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Add examples to ma.max function
* indent fix
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* Indententation fixes
* Indent fixes
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* Indent fixes
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* Added example that gives masked array
* fix output indent
* Update numpy/ma/core.py
* Update numpy/ma/core.py
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
|/| |
BUG: Distinguish exact vs. equivalent dtype for C type aliases.
|
| |
| |
| |
| |
| | |
Fix a false mismatch. Separate dtype objects, even if equivalent,
cause distinct array views to be created.
|
| |
| |
| |
| | |
This reverts commit e2efced9bdfc773f5aca2487f12ab1cb2bd11833.
|
| |
| |
| |
| | |
This reverts commit 6b8d55e66e532d66e1701ad039b4cda306839b3f.
|
| |
| |
| |
| | |
This reverts commit 8cd6f4ca00b6e0da3833fc267d50067b2ddbc069.
|
| |
| |
| |
| | |
This reverts commit db1a98bf194771a677dbc0c2e06bc47f4a9947a8.
|
| |
| |
| |
| | |
This reverts commit b8c6d09208ecb7f0d83a8b06ab9e15e720f03730.
|
| |
| |
| |
| |
| |
| |
| | |
Fixed issue that occurs when trying to take the median of a list of masked arrays.
Added a check to see if the input is a list then converts to a masked array.
See issue #10757 for more information.
Co-authored-by: jsclose <jsclose@umich.edu>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes the problem reported at
https://github.com/numpy/numpy/pull/21977#issuecomment-1186082534
The reduce method here effectively calls itself with an unmasked
MaskedArray (mask=nomask) and then expects either a MaskedArray or
a scalar. This change ensures that an ordinary ndarray is
converted to a MaskedArray, following the pattern already used in
mean and var in this module.
|
|/
|
|
|
| |
Adapted from the problem reported at
https://github.com/numpy/numpy/pull/21977#issuecomment-1186082534
|
| |
|
|
|
|
|
| |
This test makes sure that a MaskedArray defers properly to another
class if it doesn't know how to handle it. See #15200.
|
|
|
|
|
|
| |
This enables any ufunc numpy operations that are called on a
MaskedArray to use the masked version of that function automatically
without needing to resort to np.ma.func() calls.
|
| |
|
|
|
|
|
| |
This test makes sure that a MaskedArray defers properly to another
class if it doesn't know how to handle it. See #15200.
|
|
|
|
|
|
| |
This enables any ufunc numpy operations that are called on a
MaskedArray to use the masked version of that function automatically
without needing to resort to np.ma.func() calls.
|