summaryrefslogtreecommitdiff
path: root/numpy/ma/extras.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * BUG: Masked arrays and apply_over_axesLev Abalkin2014-04-011-8/+35
| | | | | | | | | | | | | | Masked arrays version of apply_over_axes did not apply function correctly to arrays with non-trivial masks. Fixes #4461.
* | Merge pull request #4045 from abalkin/gh-4043Charles Harris2014-03-261-2/+2
|\ \ | |/ |/| ENH: ma.asarray() and ma.asanyarray() will pass through input of the cor...
| * BUG: Fixed mask_rowcols().Lev Abalkin2013-11-141-2/+2
| | | | | | | | | | | | | | Previous implementation relied on ma.asarray() to always create a new object. See gh-4043.
* | DEP: Deprecate boolean `-` operationsSebastian Berg2014-02-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Boolean - is not well defined, especially the unary and binary operator are not compatible. In general boolean minus seems to have no real application and does not do what might be expected. All "allclose" type functions (numpy, tests, masked) have to now check for boolean to avoid the deprecation warning. In the future one could think about removing it again and just allowing the upcast.
* | DOC: Fix description of ma.average parameter.astaric2014-01-291-2/+2
|/ | | | Replace mention of variance in numpy.ma.average doc string with average.
* BUG: ma: ma.average didn't handle complex arrays correctly (issue gh-2684)Warren Weckesser2013-06-151-7/+7
|
* BUG: Correctly pass on ddof paramter on inside np.ma.corrcoefSebastian Berg2013-05-171-4/+3
| | | | | | While ddof has basically no effect on corrcoef, it exists, but it was not passed on correctly (instead only bias would be passed on). Fixes gh-3336
* MAINT: Apply 2to3 idioms fixer.Charles Harris2013-05-021-4/+4
| | | | | | | | | | | | | | | | | | | The idioms fixer makes the following replacements. 1) int <- bool 2) comparison or identity of types <- isinstance 3) a.sort() <- sorted(a) There were two problems that needed to be dealt with after the application of the fixer. First, the replacement of comparison or identity of types by isinstance was not always correct. The isinstance function returns true for subtypes whereas many of the places where the fixer made a substitution needed to check for exact type equality. Second, the sorted function was applied to arrays, but because it treats them as iterators and constructs a sorted list from the result, that is the wrong thing to do. Closes #3062.
* ENH: add `invert` parameter to numpy.in1d().Julien Phalip2013-04-081-3/+6
|
* 2to3: Apply `print` fixer.Charles Harris2013-04-061-1/+1
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* Merge pull request #460 from endolith/regex_formattingCharles Harris2013-04-031-1/+1
|\ | | | | DOC: Formatting fixes using regex
| * DOC: regex-assisted fixes of definition list formattingendolith2013-03-191-1/+1
| |
* | 2to3: Use absolute imports.Charles Harris2013-03-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new import `absolute_import` is added the `from __future__ import` statement and The 2to3 `import` fixer is run to make the imports compatible. There are several things that need to be dealt with to make this work. 1) Files meant to be run as scripts run in a different environment than files imported as part of a package, and so changes to those files need to be skipped. The affected script files are: * all setup.py files * numpy/core/code_generators/generate_umath.py * numpy/core/code_generators/generate_numpy_api.py * numpy/core/code_generators/generate_ufunc_api.py 2) Some imported modules are not available as they are created during the build process and consequently 2to3 is unable to handle them correctly. Files that import those modules need a bit of extra work. The affected files are: * core/__init__.py, * core/numeric.py, * core/_internal.py, * core/arrayprint.py, * core/fromnumeric.py, * numpy/__init__.py, * lib/npyio.py, * lib/function_base.py, * fft/fftpack.py, * random/__init__.py Closes #3172
* | 2to3: Replace xrange by range and use list(range(...)) where neededCharles Harris2013-03-271-2/+2
|/ | | | | | | | | | | | | | | In python3 range is an iterator and `xrange` has been removed. This has two consequence for code: 1) Where a list is needed `list(range(...))` must be used. 2) `xrange` must be replaced by `range` Both of these changes also work in python2 and this patch makes both. There are three places fixed that do not need it, but I left them in so that the result would be `xrange` clean. Closes #3092
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-0/+2
| | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates.
* 2to3: Apply `raise` fixes. Closes #3077.Charles Harris2013-03-011-2/+2
| | | | | | | | | | Replaces the raise Exception, msg: form with raise Exception(msg):
* BUG: Handle weight correctly and don't modify the original.Charles Harris2011-12-151-8/+13
|
* MAINT: Make masked ma.polyfit match current polyfit.Charles Harris2011-12-151-27/+11
|
* ENH: missingdata: Implemented boolean assignment, working with NA masksMark Wiebe2011-08-271-1/+1
|
* STY: Update exception style, easy ones.Charles Harris2011-04-051-8/+8
|
* DEP: remove unique1d, setmember1d and intersect1d_nu.rgommers2011-03-111-5/+5
|
* fix (flat)notmasked_/contiguous/edges/pierregm2010-08-111-7/+19
|
* ma.extraspierregm2010-08-091-23/+32
| | | | * fixed the documentation of (flat)notmasked_xxx
* * fixed numpy.ma.extras.flatnotmasked_contiguous (bug #1576)pierregm2010-08-091-10/+8
|
* DEP: Remove ma.extras functions that were deprecated in 1.4.0.rgommers2010-08-051-53/+3
|
* ENH: Add ddof keyword to masked versions of cov and corrcoef.Charles Harris2010-07-071-8/+41
|
* * Added `apply_over_axes` as requested in ticket #1480pierregm2010-05-161-77/+103
|
* first set of checkins from the doc editorJarrod Millman2009-11-131-21/+167
|
* Merge deprecate_with_doc into deprecate(message="...").Stefan van der Walt2009-10-251-4/+4
|
* Docstring update: maPauli Virtanen2009-10-021-109/+282
|
* * fixed np.ma.average on integersw/ mask (bug #1188)pierregm2009-08-061-1/+1
|
* Fix to setdiff1d (and masked version) + tests (#1133, by N.C.)Robert Cimrman2009-07-201-1/+4
|
* core : fixed MaskedArray.__array_finalize__ when the mask is full of False ↵pierregm2009-07-181-4/+72
| | | | | | (bugfix #1166) extras : introduced clump_masked and clump_unmasked
* Enhancements to arraysetops (ticket #1133, by Neil Crighton)Robert Cimrman2009-07-081-73/+100
|
* Merge from doc wikiPauli Virtanen2009-06-191-2/+39
|
* * fixed notmasked_edges when no data are maskedpierregm2009-04-131-4/+4
|
* Merge from the doc wikiPauli Virtanen2009-03-241-25/+225
|
* * add intersect1d, intersect1d_nu, setdiff1d, setmember1d, setxor1d, ↵pierregm2009-01-191-59/+203
| | | | | | unique1d, union1d * use np.atleast1d instead of ma.atleast1d
* numpy.ma.core:pierregm2009-01-131-53/+69
| | | | | | | | | | | * introduced baseclass, sharedmask and hardmask as readonly properties of MaskedArray * docstrings update numpy.ma.extras: * docstring updates docs/reference * introduced maskedarray, maskedarray.baseclass, maskedarray.generic
* Get lstsq and eigvals from numpy.linalg, not from numpy.dual. Addresses ↵Pauli Virtanen2008-12-131-2/+2
| | | | Scipy ticket #800
* * Fixed MaskedArray for nested dtype w/ input maskpierregm2008-12-021-5/+5
| | | | | * Fixed masked_all for nested dtype * Fixed masked_all_like for nested dtype
* * Added get_object_signature to fix missing signaturespierregm2008-11-271-146/+35
| | | | | | * Fixed .getdoc from _arraymethod, _frommethod, _convert2ma, _fromnxfunction * Fixed the docstrings of .trace, .mean, .argsort, .sort * Suppressed duplicated conjugate, ptp, round, expand_dims, apply_along_axis, compress_rowcols, mask_rowcols, vander, polyfit
* Import documentation from doc wiki (part 2, work-in-progress docstrings, but ↵Pauli Virtanen2008-10-281-28/+33
| | | | they are still an improvement)
* median : fixed a bug in _median1D (there shouldn't have been an axis)pierregm2008-09-181-1/+1
|
* Updated doc + -OO compatibilitypierregm2008-08-261-2/+8
|
* Small style cleanup. Need work for ticket #893.Charles Harris2008-08-261-0/+2
|
* ran reindentJarrod Millman2008-08-081-7/+7
|
* corepierregm2008-08-071-48/+82
| | | | | | | * use self.__name__ for private method instances extras * fixed corrcoef * introduced diagflat
* * added cov and corrcoef to ma.extras for compatibilitypierregm2008-08-051-15/+138
|
* Merge from documentation editor.Stefan van der Walt2008-08-051-8/+105
|