summaryrefslogtreecommitdiff
path: root/numpy/ma/tests
Commit message (Collapse)AuthorAgeFilesLines
* extras : dropped the m prefix in mediff1d, mvander, mpolyfitpierregm2008-05-142-13/+23
| | | | mrecords: fixed __setitem__ to update the mask if needed.
* extras: introduced mvander and mpolyfitpierregm2008-05-131-0/+30
|
* power : fixed a bug when a scalar is the first argumentpierregm2008-05-121-3/+10
| | | | | MaskedArray.__pow__ : call power MaskedArray.__ipow__: works in place. Note that the _data part gets "fixed" (NaNs/Infs set to fill_value)
* core : power : use the quick-and-dirty approach: compute everything and mask ↵pierregm2008-05-121-1/+5
| | | | | | | afterwards : MaskedArray._update_from(obj) : ensure that _baseclass is a ndarray if obj wasn't one already : introduced clip in the namespace, just for convenience
* core : power : mask all negative values when the exponent (b) doesn't ↵pierregm2008-05-091-0/+5
| | | | satisfy b==b.astype(int)
* core : power : mask all negative values when the exponent (b) doesn't ↵pierregm2008-05-091-0/+1
| | | | satisfy (abs(b-int(b))<np.finfo(float).precision)
* core : prevent power to mask negative values when it should notpierregm2008-05-071-0/+5
|
* core : force .compressed() to return a type(_baseclass) object (usually a ↵pierregm2008-05-051-3/+17
| | | | | | ndarray) : fixed a bug in .compressed() when the _baseclass is a matrix
* core : clean up update_frompierregm2008-05-011-1/+1
|
* core : fixed a bug w/ array((0,0))/0.pierregm2008-04-301-0/+4
| | | | | | testutils : introduced assert_almost_equal/assert_approx_equal: use assert_almost_equal(a,b,decimal) to compare a and b up to decimal places use assert_approx_equal(a,b,decimal) to compare a and b up to b*10.**-decimal
* removed tests/test_mstat and tests/test_morestats (now available in scipy)pierregm2008-04-252-289/+0
|
* __float__ : raises a TypeError exception for arrays longer than 1pierregm2008-04-232-7/+10
| | | | __int__ : raises a TypeError exception for arrays longer than 1
* mrecords: clean-uppierregm2008-04-201-0/+8
| | | | | | core: MaskedArray.__setitem__ : when hardmask is False, force the data to be updated before the mask. core: MaskedArray.round_ : fixed to keep the dates on TimeSeries core: round : simplified
* ran reindent in preparation for the 1.1 releaseJarrod Millman2008-04-203-25/+25
|
* core:pierregm2008-04-141-51/+73
| | | | | | | | | | | | | | fix_invalid : use isfinite & skip setting a mask is there's no invalid data _update_from: force the default hardmask to False (instead of relying on class default) extras: cleanup mrecords: modified to meet new standards (import numpy as np) __array_finalize__ : skip the call to _update_from and directly update __dict__ __setmask__ : allow an update from a valid fieldmask mask : as recognizable property
* Fix maskedarray's std and var of complex arrays, with test. Add test for ddof.aarchiba2008-04-071-0/+54
|
* core: pierregm2008-04-073-3/+3
| | | | | | | | | | compressed : make sure that the result is always an array. count : make sure that a regular ndarray is returned. added the get_fill_value function extras: added the expand_dims function deleted varu/stdu (redundant with the ddof=1 parameter)
* Add tests for ddof parameter in var/std [patch by Anne Archibald].Stefan van der Walt2008-04-061-0/+2
|
* new methods : roundpierregm2008-03-271-0/+15
| | | | | new functions : frombuffer, fromfunction, identity, indices, trace to fix : fromfile/tofile raise a NotImplementedError. For now.
* Remove broken ma test.Stefan van der Walt2008-03-231-2/+0
|
* core : fixed sort when axis is Nonepierregm2008-03-222-5/+36
| | | | | | | 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
* - fixed masked_where (bug #703)pierregm2008-03-181-1/+10
| | | | | - simplified 'masked_invalid' and added it to __all__ - added the 'out' optional parameter to .mean
* updated API_CHANGES.txtpierregm2008-02-151-0/+11
| | | | | | mstats : updated docstrings morestats : updated docstrings core : fixed __setitem__ for records
* Remove .data comparisons in tests. Fix whitespace.Stefan van der Walt2008-02-072-8/+1
|
* Ignore DeprecationWarning during testing.Stefan van der Walt2008-02-061-2/+5
|
* Remove print statement from test.Stefan van der Walt2008-02-061-1/+0
|
* maskedarray.core:pierregm2008-02-012-105/+281
| | | | | | | | tolist : make sure that a masked record is output as a tuple of None maskedarray.mrecords: * introduced mrecarray as the equivalent of recarray w/ fieldmask * simplified fromarrays/fromrecords
* maskedarray.core:pierregm2008-01-281-0/+16
| | | | | * fixed compress (third time the charm?) * fixed a pb w/ get_fill_value when fill_value is None: now recognized records.
* core: fixed compress to ensure that a.compress(cond)==a[cond] in most casespierregm2008-01-241-9/+16
|
* ma.core : add the compress method/functionpierregm2008-01-241-4/+21
|
* Add 'compress'.Stefan van der Walt2008-01-231-0/+6
|
* Merge patch fixing mask dimensions on concatenation.Stefan van der Walt2008-01-221-48/+58
|
* Fix concatenation. Closes ticket #642.Stefan van der Walt2008-01-101-0/+12
|
* Fix inplace test.Stefan van der Walt2008-01-101-3/+3
|
* Apply patch by Pierre. Move tests from __main__ to the tests directory.Stefan van der Walt2008-01-101-56/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | fix_invalid - change the default to copy=True _MaskedUnaryOperation - make sure the result gets updated from the input (for subclasses) _MaskedBinaryOperation - make sure the result gets updated from the inputs (for subclasses) _DomainedBinaryOperation - make sure the result gets updated from the inputs (for subclasses) MaskedArray.__new__ - added the ndmin keyword MaskedArray.__getitem__ - works with fields, using the global mask MaskedArray.__setitem__ - works with fields. The global mask is NOT updated MaskedArray.ids - fixed when nomask MaskedArray.min/.max - force masked to be returned when the whole array is masked array - added the ndmin keyword
* Fix unit tests. Prevent nomask from being copied.Stefan van der Walt2007-12-212-10/+16
|
* Apply Pierre's patch.Stefan van der Walt2007-12-201-0/+32
|
* API has changed for put and putmask; remove two outdated tests.Stefan van der Walt2007-12-161-12/+1
|
* Reformat docstrings for 80 columns.Stefan van der Walt2007-12-151-6/+6
|
* Pull in old tests.Stefan van der Walt2007-12-152-0/+875
|
* Ignore warning raised during testing.Stefan van der Walt2007-12-151-0/+4
|
* Move ma to numpy root. Fix unit tests. Remove references to numpy.core.ma.Stefan van der Walt2007-12-156-0/+2288