Sat Oct 29 22:16:31 CDT 2011
On Saturday, October 29, 2011, Jason Grout <firstname.lastname@example.org>
> On 10/29/11 5:02 PM, Olivier Delalleau wrote:
>> I haven't been following the discussion closely, but wouldn't it be
>> 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:
> 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?
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion