Re: [Numpy-discussion] Question about mrecarray

2008-03-04 Thread Pierre GM
Jeff, > Is there a better way to tell if the individual fields are masked than > accessing ._fieldmask? That depends. If you need to access you mrecarray record by record (by rows), yes you have to check the corresponding ._fieldmask. If instead you can process your array field by field (by col

[Numpy-discussion] Question about mrecarray

2008-03-04 Thread Jeff Garrett
Hi, I'm using an mrecarray in a situation where I need to replace the masked values with default values which are not necessarily the same as the fill value... Something like: for field, mask in zip(row, row._fieldmask): value = field if not mask else ... ... Is there a better way to t