| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
fields '_data' and '_mask'
|
|
|
|
| |
fixed the actual bug.
|
|
|
|
| |
reasonable boundary. It does no harm to the test, but it shouldn't be necessary. However, I need the buildbots to test it out on the Sparc64 platform for me.
|
|
|
|
|
|
|
|
|
|
|
| |
* improved check on object/record arrays
core
* fixed filled for flexible types
* fixed the definition of the mask for flexible types
mrecords:
* fixed a bug w/ titles/formats in __new__ and __array_finalize__
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
modules.
|
|
|
|
| |
* Force a mask to be created from a list of masked arrays when mask=nomask and keep_mask=True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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"
|
|
|
|
|
| |
* revamped the methods sum/prod/var/std/min/max/round to accept an explicit out argument
* Force var to return masked when a masked scalar was returned
|
|
|
|
|
| |
* revamped argmin/argmax to accept the out keyword
* revamped all/any to accept the out keyword
|
| |
|
| |
|
|
|
|
|
|
| |
* masked_values now accept a shrink argument
* fixed the divide_tolerance to numpy.finfo(float).tiny (bug #807)
* in MaskedArray.__idiv__, use np.where instead of np.putmask to mask the denominator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* use the "import numpy as np" convention
* use np.function instead of (from)numeric.function
* CHANGE : when using named fields, the fill_value is now a void-ndarray (and no longer a tuple)
* _check_fill_value now checks that an existing fill_value is compatible with a new dtype (bug #806)
* fix_invalid now accepts the mask keyword
* MaskedArray.__new__ doesn't run _check_fill_value when the fill_value is None
* add the astype method, to support the conversion of fill_value when needed.
* arange/empty/empty_like/ones/zeros are now available through _convert2ma
test_core:
* modified test_filled_value to reflect that fill_value is a void-ndrecord when using named fields
* added test_check_fill_value/test_check_fill_value_with_records
testutils:
* use the "import numpy as np" convention
* assert_equal_records now uses getitem instead of getattr
* assert_array_compare now calls numpy.testing.utils.assert_array_compare on filled data
* the assert_xxx functions now accept the verbose keyword
mrecords:
* MaskedRecords inherit get_fill_value and set_fill_value from MaskedArray
* In filled, force the filling value to be a void-ndarray
|
|
|
|
|
| |
mrecords : IMPORTANT : the mask of a field is no longer set to nomask when it's full of False, which simplifies masking specific fields.
extras : Reorganized personal comments
|
|
|
|
| |
mrecords: force _guessvartypes to return numpy.dtypes instead of types
|
| |
|
| |
|
| |
|
|
|
|
| |
extras : fixed a bug in the naming convention
|
|
|
|
| |
mrecords: fixed __setitem__ to update the mask if needed.
|
| |
|
|
|
|
|
| |
MaskedArray.__pow__ : call power
MaskedArray.__ipow__: works in place. Note that the _data part gets "fixed" (NaNs/Infs set to fill_value)
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
satisfy b==b.astype(int)
|
|
|
|
| |
satisfy (abs(b-int(b))<np.finfo(float).precision)
|
| |
|
|
|
|
|
|
| |
ndarray)
: fixed a bug in .compressed() when the _baseclass is a matrix
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
__int__ : raises a TypeError exception for arrays longer than 1
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
|
| |
new functions : frombuffer, fromfunction, identity, indices, trace
to fix : fromfile/tofile raise a NotImplementedError. For now.
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
- simplified 'masked_invalid' and added it to __all__
- added the 'out' optional parameter to .mean
|
|
|
|
|
|
| |
mstats : updated docstrings
morestats : updated docstrings
core : fixed __setitem__ for records
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
* fixed compress (third time the charm?)
* fixed a pb w/ get_fill_value when fill_value is None: now recognized records.
|