On Saturday, October 29, 2011, Jason Grout <[email protected]> wrote: > On 10/29/11 5:02 PM, Olivier Delalleau wrote: >> I haven't been following the discussion closely, but wouldn't it be instead: >> a.mask[0:2] = True? >> >> It's something that I actually find a bit difficult to get right in the >> current numpy.ma <http://numpy.ma> implementation: I would find more >> intuitive to have True for "valid" data, and False for invalid / missing >> / ... I realize how the implementation makes sense (and is appropriate >> given that the name is "mask"), but I just thought I'd point this out... >> even if it's just me ;) > > > Just a thought: what if this also worked: > > a.mask[0:2]=np.NA > > as a synonym for a.mask[0:2]=True? > > Would that be less confusing, and/or would it be less powerful or > extensible in important ways? > > Thanks, > > Jason Grout > >
Don't know. It is a different way of looking at it. I am also still wary of adding attributes to the array. Ben Root
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
