summaryrefslogtreecommitdiff
path: root/numpy/ma/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* (no commit message)pierregm2009-02-071-4/+4
|
* MaskedArray.resize : systematically raise a TypeError exception, as a masked ↵pierregm2009-02-071-0/+11
| | | | | | array never owns its data MaskedIterator : fixed to allow .flat on masked matrices
* * prevent MaskedBinaryOperation and DomainedBinaryOperation to shrink the ↵pierregm2009-01-271-0/+54
| | | | mask of the output when at least one of the inputs has a mask full of False
* * add intersect1d, intersect1d_nu, setdiff1d, setmember1d, setxor1d, ↵pierregm2009-01-191-43/+221
| | | | | | unique1d, union1d * use np.atleast1d instead of ma.atleast1d
* * Add flatten_structured_array to the namespacepierregm2009-01-101-7/+7
|
* * Added flatten_structured_arrayspierregm2009-01-091-1/+44
| | | | * Fixed _get_recordarray for nested structures
* * Add __eq__ and __ne__ for support of flexible arrays.pierregm2009-01-081-0/+44
| | | | * Fixed .filled for nested structures
* * Renamed `torecords` to `toflex`, keeping `torecords` as an aliaspierregm2009-01-071-7/+74
| | | | | * Introduced `fromflex`, to reconstruct a masked_array from the output of `toflex` (can’t `use fromrecords` as it would clash with `numpy.ma.mrecords.fromrecords`) * Fixed a bug in MaskedBinaryOperation (#979) (wrong array broadcasting)
* * Fixed iadd/isub/imul when the base array has no mask but the other array doespierregm2009-01-071-0/+45
|
* * adapted default_fill_value for flexible datatypepierregm2009-01-041-0/+45
| | | | * fixed max/minimum_fill_value for flexible datatype
* ran reindentJarrod Millman2008-12-313-10/+8
|
* testutils:pierregm2008-12-232-8/+24
| | | | | | | | | | | | | * assert_equal : use assert_equal_array on records * assert_array_compare : prevent the common mask to be back-propagated to the initial input arrays. * assert_equal_array : use operator.__eq__ instead of ma.equal * assert_equal_less: use operator.__less__ instead of ma.less core: * Fixed _check_fill_value for nested flexible types * Add a ndtype option to _make_mask_descr * Fixed mask_or for nested flexible types * Fixed the printing of masked arrays w/ flexible types.
* testutils:pierregm2008-12-221-11/+119
| | | | | | assert_array_compare : make sure that the comparison is performed on ndarrays, and make sure we use the np version of the comparison function. core: * Try not to touch the data in unary/binary ufuncs, (including inplace)
* * Added MaskErrorpierregm2008-12-051-3/+10
| | | | * If a bool or int ndarray is given as the explicit output of var/min/max, an exception is raised if the function should have output np.nan
* * Fixed make_mask_descr for dtype w/ composite names, like [(('A','B'), float)]pierregm2008-12-021-5/+9
|
* * 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
* * added flatten_mask to collapse masks w/ (nested) flexible types.pierregm2008-12-011-0/+18
| | | | * fixed __getitem__ on arrays w/ nested dtype
* Fixed make_mask_descr for nested dtypespierregm2008-12-011-0/+10
|
* * added ma.diagpierregm2008-11-261-0/+16
| | | | | * added copy, cumprod, cumsum, harden_mask, prod, round, soften_mask, squeeze to the namespace * TEMPORARILY fixed a pb of compatibility with python 2.6 (involvingin(np.nan))
* Added mod to the ufuncspierregm2008-11-231-1/+11
|
* Rewrote allclose to allow comparison with a scalarpierregm2008-11-211-1/+22
|
* * Prevent the shape of a 1d-singleton to be lost when interacting with ↵pierregm2008-11-211-6/+79
| | | | masked (bug fix #948)
* Import np_ in ma tests since the import is not available in numpy.ma anymore.David Cournapeau2008-11-201-0/+1
|
* * make sure we call self.failUnless instead of assertpierregm2008-10-191-5/+5
|
* core : * fixed make_mask_descr to recognize subdtypes pierregm2008-10-183-52/+156
| | | | | | | | | : * fixed some corner cases of view mrecords : * fixed view : * got rid of _fieldmask for _mask : * WARNING: setting ._mask no longer calls __setmask__ : BE CAREFUL. : * prevent setting ._mask directly, as it screws up things: use .mask instead test_subclassing : * clean up
* replaced assert with self.failUnlesspierregm2008-09-294-166/+166
|
* core:pierregm2008-09-281-0/+9
| | | | | * added __rmul and __radd__ * fixed concatenate for flexible-dtype
* core:pierregm2008-09-192-2/+18
| | | | | | | | | | * add dtype to the repr of masked arrays w/ flexible type * prevent __getitem__ to return masked on flexible-type masked array * make sure __str__ returns something sensible for flexible dtype w/ masked fields * simplify the count method mrecords: * fixed a pb with fromrecords when the number of fields cannot be determined from the first element.
* median : fixed a bug in _median1D (there shouldn't have been an axis)pierregm2008-09-181-14/+25
|
* MaskedArray.__new__ : make sure that we inherit the _hardmask from data (if ↵pierregm2008-09-131-0/+2
| | | | any) instead of reverting to default.
* Removed unused imports.Alan McIntyre2008-09-131-9/+4
| | | | Standardize NumPy import as "import numpy as np".
* * fixed view for MaskedArrays w/ flexible dtypepierregm2008-09-111-0/+28
|
* * make sure that minimum & maximum actually return a MaskedArraypierregm2008-09-091-0/+17
|
* Removed unused imports.Alan McIntyre2008-09-092-3/+1
|
* * fixed deepcopy of masked arrays (bug #906)pierregm2008-09-051-0/+18
|
* core : make sure that masked_equal works with a list as inputpierregm2008-08-251-1/+9
| | | | mrecords: make sure that the keys of self._optinfo are recognized as valid attributes.
* * masked_where : force a consistency check on the shapes of the inputspierregm2008-08-121-0/+11
|
* ran reindentJarrod Millman2008-08-084-46/+46
|
* * 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
|
* corepierregm2008-08-041-0/+8
| | | | MaskedArray.__new__: prevents data.mask to change shape and force a copy of _data.mask
* core:pierregm2008-08-031-8/+21
| | | | | | | | * renamed _basedict to _optinfo * prevented the back propagation of _optinfo in _update_from : the __dict__ is copied only if the underlying object is not a MaskedArray * fixed getmaskarray for flexible dtype * fixed __setitem__ when filling fields (the mask might still be nomask) * _arraymethod now stores the name of the method in both self._name and self.__name__
* * core : prevent ._basedict to be incorrectly propagatedpierregm2008-07-281-1/+10
|
* Standardize NumPy import as "import numpy as np".Alan McIntyre2008-07-221-13/+13
|
* * force the domain to the shape of the other element in ↵pierregm2008-07-221-0/+19
| | | | DomainedBinaryOperation (bugfix 857)
* core:pierregm2008-07-211-0/+8
| | | | * Make sure that the .reshape method accepts a new shape as a list (and not as a tuple only)
* core:pierregm2008-07-213-54/+72
| | | | * fixed the reshape function/method to accept an 'order' optional parameter
* Undo test of SPARC alignment.Charles Harris2008-07-201-2/+0
|
* Testing SPARC alignment.Charles Harris2008-07-201-0/+2
|