summaryrefslogtreecommitdiff
path: root/numpy/ma
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #10479 from eric-wieser/masked-array-out-fixMarten van Kerkwijk2018-01-262-5/+32
|\ | | | | BUG: Calling ufuncs with a positional output argument causes the result to inherit the output's mask
| * BUG: Calling ufuncs with a positional output argument causes the result to ↵Eric Wieser2018-01-252-5/+32
| | | | | | | | | | | | | | | | | | 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.
* | STY: Break some long lines.Charles Harris2018-01-181-1/+2
| | | | | | [ci skip]
* | ref to issue in numpy.maAnas Khan2018-01-101-0/+1
| |
* | adding new tests for union1dAnas Khan2018-01-091-0/+6
| |
* | BUG: concatenation using axis=None in union1dAnas Khan2018-01-091-1/+1
| |
* | BUG: arrays not being flattened in `union1d`Anas Khan2018-01-081-1/+1
|/
* More misc. typosluz.paz2018-01-041-1/+1
| | | Found via `codespell`
* Merge pull request #10292 from eric-wieser/no-change-masked-shapeCharles Harris2018-01-012-0/+16
|\ | | | | BUG: Masked singleton can be reshaped to be non-scalar
| * BUG: Masked singleton can be reshaped to be non-scalarEric Wieser2018-01-012-0/+16
| | | | | | | | It's possible this is the cause of gh-10270, where it seems something is wrong with the shape
* | ENH: Allow ptp to take an axis tuple and keepdimsEric Wieser2017-12-281-12/+14
|/
* MAINT: Fix nose features to work on pytestxoviat2017-12-221-0/+1
|
* Merge pull request #10232 from eric-wieser/use-isclose-in-masked_valuesCharles Harris2017-12-182-16/+27
|\ | | | | BUG: Don't reimplement isclose in np.ma
| * BUG: Don't reimplement isclose in np.maEric Wieser2017-12-182-16/+27
| | | | | | | | This fixes gh-10227, as well as some other problems that weren't previously known.
* | Merge pull request #10211 from mhvk/ma-astype-alternativeEric Wieser2017-12-182-46/+53
|\ \ | |/ |/| MAINT,ENH: remove MaskedArray.astype, as the base type does everything.
| * MAINT,ENH: remove MaskedArray.astype, as the base type does everything.Marten van Kerkwijk2017-12-182-46/+53
| | | | | | | | | | With a slight update to `__array_finalize__`, this also fixes the mask ordering to be the same as that of the data.
* | ENH: added masked version of 'numpy.stack' with tests.lzkelley2017-12-172-2/+85
| | | | | | | | | | Uses '_fromnxfunction_seq' just like 'vstack', 'hstack', etc. Added release note to 1.15.0.
* | Merge pull request #10216 from eric-wieser/deprecate-pickle-aliasesCharles Harris2017-12-131-1/+1
|\ \ | | | | | | BUG: Fix broken format string picked up by LGTM.com
| * | BUG: Fix broken format string picked up by LGTM.comEric Wieser2017-12-131-1/+1
| | | | | | | | | | | | Fixes regression I introduced in gh-10192
* | | ENH: Allow np.r_ to accept 0d arraysEric Wieser2017-12-111-0/+9
| |/ |/| | | | | Fixes gh-9233
* | Merge pull request #10192 from eric-wieser/deprecate-pickle-aliasesCharles Harris2017-12-111-0/+14
|\ \ | |/ | | DEP: Deprecate the pickle aliases
| * DEP: Deprecate the pickle aliasesEric Wieser2017-12-101-0/+14
| | | | | | | | | | | | * 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)
* | BUG: Fix regression in np.ma.load in gh-10055Eric Wieser2017-12-101-2/+2
|/
* BUG: Fix incorrect wrapping of `MaskedArray`Eric Wieser2017-12-081-2/+4
| | | | | | Missed in gh-10176. Already in the non-legacy branch, so no need to gate it here.
* BUG: stray comma should be preserved for legacy printingAllan Haldane2017-11-291-2/+2
| | | | Fixes #10059
* ENH: Improve MaskedArray.__repr__Eric Wieser2017-11-203-21/+153
| | | | | | | * 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
* TST: Improve assertion error messagesEric Wieser2017-11-201-5/+8
|
* BUG: Have np.ma.dump and np.ma.load close their files (#10055)orbit-stabilizer2017-11-191-4/+8
| | | Fixes #10045
* ENH: don't show boolean dtype, as it is impliedEric Wieser2017-11-132-18/+18
|
* BUG: str(arr0d) and unicode(arr0d) should never go through ↵Eric Wieser2017-11-122-0/+18
| | | | | | | | np.set_string_function It's more important that scalars and 0d arrays are consistent here. Previously, unicode(arr0d) would crash on 2.7
* DEP, ENH: deprecate UPDATEIFCOPY (except for nditer) and replace with ↵Matti Picus2017-11-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* MAINT: Make private helper function non-public instead.Charles Harris2017-10-251-2/+2
|
* MAINT: Separate stringification from masked_print_option-insertionEric Wieser2017-10-231-4/+7
| | | | This means we can implement `__unicode__` easily too, or perhaps `__format__` in future
* MAINT: Remove branching from MaskedArray.__repr__, and line-wrapEric Wieser2017-10-231-37/+47
|
* Merge pull request #9817 from kenogo/masterEric Wieser2017-10-042-1/+17
|\ | | | | BUG: Added exception for casting numpy.ma.masked to long
| * BUG: Added exception for casting numpy.ma.masked to longKeno Goertz2017-10-052-1/+17
| | | | | | | | TST: Added test_coercion_long and removed knownfailure from test_coercion_int
* | Merge pull request #9822 from eric-wieser/MaskedConstant-subclassCharles Harris2017-10-042-3/+18
|\ \ | |/ |/| BUG: Allow subclasses of MaskedConstant to behave as unique singletons
| * BUG: Allow subclasses of MaskedConstant to behave as unique singletonsEric Wieser2017-10-042-3/+18
| | | | | | | | Fixes astropy/astropy#6645
* | BUG: fix stray comma in _array2stringStefan Winkler2017-10-031-2/+2
|/ | | | | | _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.
* Merge pull request #9645 from xoviat/appveyorCharles Harris2017-09-301-0/+4
|\ | | | | ENH: enable OpenBLAS on windows.
| * tests: core: update failure messagexoviat2017-09-091-1/+1
| |
| * TST: fix failures:xoviat2017-09-041-0/+4
| | | | | | | | | | | | 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.
* | BUG: Don't ignore mismatching shapes just because the mask is all zerosEric Wieser2017-09-282-2/+8
| | | | | | | | Fixes #4520
* | BUG: Shrinking the mask on a structured type errorsEric Wieser2017-09-282-13/+24
| | | | | | | | Now it is a no-op, as elsewhere in the file. Extract the mask-shrinking into a function.
* | BUG: np.ma.trace gives the wrong result on ND arraysEric Wieser2017-09-272-1/+6
| | | | | | | | Fixes #5560
* | MAINT: Remove special casing of structured dtypes in MaskedArray.__str__Eric Wieser2017-09-251-24/+22
| | | | | | | | This means that large void arrays are now truncated as they are for other types, for speed.
* | MAINT: Remove special casing of 0d in MaskedArray.__str__Eric Wieser2017-09-251-22/+5
| |
* | MAINT: Remove hack from gh-7659 for gh-7493Eric Wieser2017-09-251-14/+8
| | | | | | | | Working with 0d arrays is enough here
* | BUG: Errors thrown by 0d arrays in setitem are silenced and replacedEric Wieser2017-09-231-1/+24
| | | | | | | | Fixes gh-8461
* | Merge pull request #9336 from eric-wieser/masked-constantCharles Harris2017-09-212-12/+92
|\ \ | | | | | | BUG: Fix various problems with the np.ma.masked constant