[SciPy-Dev] views and mask NA

Charles R Harris charlesr.harris at gmail.com
Fri Jan 20 23:21:45 EST 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.python.org/pipermail/scipy-dev/attachments/20120120/018faa16/attachment.html>


More information about the SciPy-Dev mailing list