| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
Also remove `numpy.ma.version.py`, it was not importable and served
no purpose.
|
|
|
|
|
| |
Also removed the incorrect comment from the docstring of `numpy.ma.average`
about the imaginary part of `weights` being ignored.
|
|\
| |
| | |
BUG: Fix misuse of .names and .fields in various places
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This check would fail on the structured type `np.dtype([])`.
No test, since I don't really understand mrecords
|
| |/
|/| |
|
|\ \
| | |
| | | |
DEP: Remove np.rank which has been deprecated for more than 5 years
|
| | |
| | |
| | |
| | | |
references #7059
|
|\ \ \
| | | |
| | | | |
BUG: Remove the broken clip wrapper
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ndarray.clip is already just a wrapper for the ufunc, so there is no need to do type-specific wrapping here any more
Fixes gh-14140
|
| |/ /
|/| |
| | | |
Resolves #14123
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
MSeifert04/ma-view-not-override-doc-with-ndarray-view
DOC: Don't override MaskedArray.view documentation with the one from ndarray.view
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ndarray.view
To document the fill_value parameter it's needed to display
the correct docstring of the function instead of overwriting
it with the docstring of ndarray.view
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In some cases the documentation examples failed with an
AttributeError because the next method was not there. In a
few other cases it still worked but may be more future-proof
and ideomatic if they used the next function instead of the
next method.
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
MAINT: Replace integers in places where booleans are expected
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | | |
The methods max, min, ptp were missing the parameter
in the documentation.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
Currently, a field specified as `[(name, dtype, 1)]` is interpreted as
a scalar field (i.e., the same as `[(name, dtype)]` or `[(name, dtype,
()]`). This now raises a FutureWarning; in a future version, it will
be interpreted as a shape-(1,) field, i.e. the same as `[(name, dtype,
(1,))]` (consistently with `[(name, dtype, n)]` with `n>1`, which is
already equivalent to `[(name, dtype, (n,)]`).
|
|\ \
| | |
| | | |
API: Make MaskedArray.mask return a view, rather than the underlying mask
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This prevents consumers from reshaping the mask in place, which breaks things
As a result, `x.mask is x.mask` returns `False`, but this was already true of `x.data is x.data`.
May also be related to gh-10270
|
| | | |
|
|/ / |
|
| |
| |
| |
| | |
These ones just generated warnings, not build failures
|
| |
| |
| | |
* DOC: fix docstring for floor_divide
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
The pickle module was being imported from numpy.core.numeric. It was
defined there in order to use pickle5 when available in Python3 and
cpickle in Python2. The numpy.compat module seems a better place for
that.
|
| | |
|
|\ \
| | |
| | | |
BUG: Make `arr.ctypes.data` hold onto a reference to the underlying array
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We do this by going through ctypes.from_buffer, which keeps the object the buffer came from alive.
A bunch of hacks are required to produce a sufficiently simple buffer for ctypes to accept.
Fixes #9647
|
| |/
|/|
| |
| |
| |
| |
| |
| | |
* ported the refguide_check module from SciPy for usage
in NumPy docstring execution/ verification; added the
refguide_check run to Azure Mac OS CI
* adjusted NumPy docstrings such that refguide_check passes
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
(#12448)
* Review F401,F841,F842 flake8 errors (unused variables, imports)
* Review comments
* More tests in test_installed_npymath_ini
* Review comments
|
| |
| |
| |
| |
| | |
This should give an empty result, not an error. The problem
was that the empty list was interpreted as a list of strings.
|
|/
|
|
| |
Fixes #10483
|
|
|
|
|
| |
Cover the string and numeric types. Structured types were
already covered.
|
|
|
|
|
|
|
| |
The type of the fill_value needs to be `bool_` in order to match
the result type of `==` and `!=`.
Closes #12248.
|
|
|
|
|
|
|
| |
Fixes the regression introduced by #10211 where the masked array fill
value type was not properly converted by astype.
Closes #12070.
|
|
|
|
|
|
|
|
| |
All imports of pickle from numpy modules are now done this way:
>>> from numpy.core.numeric import pickle
Also, some loops on protocol numbers are added over pickle tests that
were not caught from #12090
|
|
|
|
|
| |
This was used internally only by a private function that is also unused.
The loop adding type aliases was shown by #12007 to have no effect.
|
| |
|
|
|
|
|
|
|
|
| |
After the pytest migration, test classes no longer inherit
from unittest.TestCase and and the fail method does not
exist anymore.
In all these cases, we can use assert_raises and assert_raises_regex instead
|
| |
|