[Numpy-discussion] views and mask NA

Charles R Harris charlesr.harris@gmail....
Sat Jan 21 11:06:09 CST 2012


Hi All,

I'd like some feedback on how mask NA should interact with views. The
immediate problem is how to deal with the real and imaginary parts of
complex numbers. If the original has a masked value, it should show up as
masked in the real and imaginary parts. But what should happen on
assignment to one of the masked views? This should probably clear the NA in
the real/imag part, but not in the complex original. However, that does
allow touching things under the mask, so to speak.

Things get more complicated if the complex original is viewed as reals. In
this case the mask needs to be "doubled" up, and there is again the
possibility of touching things beneath the mask in the original. Viewing
the original as bytes leads to even greater duplication.

My thought is that touching the underlying data needs to be allowed in
these cases, but the original mask can only be cleared by assignment to the
original. Thoughts?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120121/438da4a5/attachment.html 


More information about the NumPy-Discussion mailing list