summaryrefslogtreecommitdiff
path: root/numpy/ma/tests/test_extras.py
Commit message (Collapse)AuthorAgeFilesLines
* fix (flat)notmasked_/contiguous/edges/pierregm2010-08-111-4/+13
|
* ma.extraspierregm2010-08-091-6/+20
| | | | * fixed the documentation of (flat)notmasked_xxx
* ENH: Add ddof keyword to masked versions of cov and corrcoef.Charles Harris2010-07-071-0/+6
|
* * Added `apply_over_axes` as requested in ticket #1480pierregm2010-05-161-211/+223
|
* DEP: Fix deprecation warnings in Python 3.1. The warnings come from the unittestCharles Harris2010-02-201-17/+17
| | | | | | | | | module. The fix should be good for Python >= 2.4 and used the following sed script: s/\<failUnless\>/assertTrue/g s/\<failIf\>/assertFalse/g s/\<failUnlessEqual\>/assertEqual/g s/\<failUnlessRaises\>/assertRaises/g
* * fixed np.ma.average on integersw/ mask (bug #1188)pierregm2009-08-061-24/+31
|
* Fix to setdiff1d (and masked version) + tests (#1133, by N.C.)Robert Cimrman2009-07-201-1/+1
|
* core : fixed MaskedArray.__array_finalize__ when the mask is full of False ↵pierregm2009-07-181-4/+27
| | | | | | (bugfix #1166) extras : introduced clump_masked and clump_unmasked
* Enhancements to arraysetops (ticket #1133, by Neil Crighton)Robert Cimrman2009-07-081-31/+25
|
* * fixed notmasked_edges when no data are maskedpierregm2009-04-131-14/+38
|
* * add intersect1d, intersect1d_nu, setdiff1d, setmember1d, setxor1d, ↵pierregm2009-01-191-43/+221
| | | | | | unique1d, union1d * use np.atleast1d instead of ma.atleast1d
* ran reindentJarrod Millman2008-12-311-2/+2
|
* * Fixed MaskedArray for nested dtype w/ input maskpierregm2008-12-021-0/+56
| | | | | * Fixed masked_all for nested dtype * Fixed masked_all_like for nested dtype
* replaced assert with self.failUnlesspierregm2008-09-291-14/+14
|
* median : fixed a bug in _median1D (there shouldn't have been an axis)pierregm2008-09-181-14/+25
|
* ran reindentJarrod Millman2008-08-081-7/+7
|
* * core : minor doc formattingpierregm2008-08-071-24/+26
| | | | * test_extras: switched to assert_almost_equal in TestCov and TestCorrcoef
* corepierregm2008-08-071-0/+56
| | | | | | | * use self.__name__ for private method instances extras * fixed corrcoef * introduced diagflat
* * added cov and corrcoef to ma.extras for compatibilitypierregm2008-08-051-1/+69
|
* Corrected a goof in .reshape()pierregm2008-07-021-2/+2
|
* Restore old test framework classes.Alan McIntyre2008-06-211-1/+1
| | | | | | | | | | | Added numpy.testing.run_module_suite to simplify "if __name__ == '__main__'" boilerplate code in test modules. Removed numpy/testing/pkgtester.py since it just consisted of an import statement after porting SciPy r4424. Allow numpy.*.test() to accept the old keyword arguments (but issue a deprecation warning when old arguments are seen). numpy.*.test() returns a test result object as before. Fixed typo in distutils doc.
* Switched to use nose to run tests. Added test and bench functions to all ↵Alan McIntyre2008-06-171-29/+20
| | | | modules.
* CHANGES:pierregm2008-06-081-43/+49
| | | | | | | | | | | | | | | | | | | core: * When creating a masked array with named fields, the mask has now a flexible type [(n,bool) for n in fields], which allows individual fields to be masked. * When a masked array has named fields, setting the mask to a sequence of booleans will set the mask of all the fields of the corresponding record. * A new property, recordmask, returns either the mask (when no named fields) or a boolean array where values are True if all the fields of one record are masked, False otherwise. * A new private attribute, _isfield, has been introduced to keep track whether an array is a field of a record-like masked array or not, and make sure that the mask is properly propagated. * Setting an existing mask to nomask will only fill the mask with False, not transform it to nomask mrecords: * _fieldmask is now only a synonym for _mask, kept for convenience * revamped __getattribute__ to the example of numpy.core.records.recarray.__getattribute__ * __setslice__ and filled are now inhertied from MaskedArray tests * The tests in test_core have been reorganized to improve clarity and avoid duplication. * test_extras now uses the convention "import numpy as np"
* extras : dropped the m prefix in mediff1d, mvander, mpolyfitpierregm2008-05-141-13/+13
| | | | mrecords: fixed __setitem__ to update the mask if needed.
* extras: introduced mvander and mpolyfitpierregm2008-05-131-0/+30
|
* ran reindent in preparation for the 1.1 releaseJarrod Millman2008-04-201-4/+4
|
* core : fixed sort when axis is Nonepierregm2008-03-221-0/+30
| | | | | | | mstats : fixed mmedian, renamed to median and moved to numpy.ma.extras for compatibility extras : introduced median from mstats mrecords: * fixed __array_finalize__ to keep the mask of a masked array when viewing it as a mrecarray * simplified _getdata
* Move ma to numpy root. Fix unit tests. Remove references to numpy.core.ma.Stefan van der Walt2007-12-151-0/+331