diff options
author | pierregm <pierregm@localhost> | 2008-06-08 23:04:42 +0000 |
---|---|---|
committer | pierregm <pierregm@localhost> | 2008-06-08 23:04:42 +0000 |
commit | c0bdc3a648a0106d6fd706661c1a50235b4b924c (patch) | |
tree | 464b7aed5df350c9c08203fb9d33e9c4f6e74be0 /numpy/oldnumeric/tests/test_oldnumeric.py | |
parent | 3cd9e033d2086d62cc2d34b818a4ef70d4653a83 (diff) | |
download | numpy-c0bdc3a648a0106d6fd706661c1a50235b4b924c.tar.gz |
CHANGES:
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"
Diffstat (limited to 'numpy/oldnumeric/tests/test_oldnumeric.py')
0 files changed, 0 insertions, 0 deletions