[Numpy-discussion] views and mask NA
Charles R Harris
Sat Jan 21 11:06:09 CST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion