| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\
| |
| | |
BUG: Calling ufuncs with a positional output argument causes the result to inherit the output's mask
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
inherit the output's mask
This brings `np.add(a, b, out)` in line with `np.add(a, b, out=out)`.
These previously differed because gh-10459 causes them to call __array_wrap__ in different ways (with and without the output argument in the context tuple, respectively).
Since the data in the `out` argument is never used by ufuncs, it seems consistent that the mask should not be either.
|
| |
| |
| | |
[ci skip]
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
| |
Found via `codespell`
|
|\
| |
| | |
BUG: Masked singleton can be reshaped to be non-scalar
|
| |
| |
| |
| | |
It's possible this is the cause of gh-10270, where it seems something is wrong with the shape
|
|/ |
|
| |
|
|\
| |
| | |
BUG: Don't reimplement isclose in np.ma
|
| |
| |
| |
| | |
This fixes gh-10227, as well as some other problems that weren't previously known.
|
|\ \
| |/
|/| |
MAINT,ENH: remove MaskedArray.astype, as the base type does everything.
|
| |
| |
| |
| |
| | |
With a slight update to `__array_finalize__`, this also fixes the
mask ordering to be the same as that of the data.
|
| |
| |
| |
| |
| | |
Uses '_fromnxfunction_seq' just like 'vstack', 'hstack', etc.
Added release note to 1.15.0.
|
|\ \
| | |
| | | |
BUG: Fix broken format string picked up by LGTM.com
|
| | |
| | |
| | |
| | | |
Fixes regression I introduced in gh-10192
|
| |/
|/|
| |
| | |
Fixes gh-9233
|
|\ \
| |/
| | |
DEP: Deprecate the pickle aliases
|
| |
| |
| |
| |
| |
| | |
* The np.ma functions are misleading, as they do not actually do anything special for ma.array
* The np.loads functions doesn't even have numpy-specific documentation, and does not behave consistently with `np.load`
* The string overloads of np.ma.load and np.ma.dump do not work well on python 3, as they make assumptions about whether a binary or text pickle file is used (gh-5491)
|
|/ |
|
|
|
|
|
|
| |
Missed in gh-10176.
Already in the non-legacy branch, so no need to gate it here.
|
|
|
|
| |
Fixes #10059
|
|
|
|
|
|
|
| |
* Commas are now used within data and mask
* dtypes are shown for float32, int8 etc, where they previously weren't
* Wrapped fields are now correctly indented
* Spaces removed around = to match PEP8
|
| |
|
|
|
| |
Fixes #10045
|
| |
|
|
|
|
|
|
|
|
| |
np.set_string_function
It's more important that scalars and 0d arrays are consistent here.
Previously, unicode(arr0d) would crash on 2.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
WRITEBACKIFCOPY (#9639)
* ENH: add API to resolve UPDATEONCOPY outside dealloc, test and use
* BUG: Fix usage of keyword "from" as argument name for "can_cast".
Also removed inconsistency between the second argument name
between documentation ("totype") and code ("to").
* UPDATEIFCOPY -> WRITEBACKIFCOPY, documentation
* fixes for review
* review2, fix new test
* fix new test for using self.assert_deprecated
* change deprecation logic as per review
* new logic exposed places where PyArray_ResolveWritebackIfCopy not called
* deprecate PyArray_XDECREF_ERR in favor of PyArray_DiscardWritebackIfCopy
* code review changes
* clean up merge cruft
* fix from review
* fixes from review
* extend the release note
|
| |
|
|
|
|
| |
This means we can implement `__unicode__` easily too, or perhaps `__format__` in future
|
| |
|
|\
| |
| | |
BUG: Added exception for casting numpy.ma.masked to long
|
| |
| |
| |
| | |
TST: Added test_coercion_long and removed knownfailure from test_coercion_int
|
|\ \
| |/
|/| |
BUG: Allow subclasses of MaskedConstant to behave as unique singletons
|
| |
| |
| |
| | |
Fixes astropy/astropy#6645
|
|/
|
|
|
|
| |
_array2string unconditionally added a comma after the '...' that
are inserted for arrays exceeding the size threshold. Instead, add
the separator character in _formatArray. Fixes #9777.
|
|\
| |
| | |
ENH: enable OpenBLAS on windows.
|
| | |
|
| |
| |
| |
| |
| |
| | |
1. fail tests related to DLL load failure as they were previously untested.
2. fix have_compiler to return false on old compilers
3. xfail some tests that were not working on old Python versions.
|
| |
| |
| |
| | |
Fixes #4520
|
| |
| |
| |
| | |
Now it is a no-op, as elsewhere in the file. Extract the mask-shrinking into a function.
|
| |
| |
| |
| | |
Fixes #5560
|
| |
| |
| |
| | |
This means that large void arrays are now truncated as they are for other types, for speed.
|
| | |
|
| |
| |
| |
| | |
Working with 0d arrays is enough here
|
| |
| |
| |
| | |
Fixes gh-8461
|
|\ \
| | |
| | | |
BUG: Fix various problems with the np.ma.masked constant
|