[Numpy-discussion] consensus

Benjamin Root ben.root at ou.edu
Sat Oct 29 23:16:31 EDT 2011


On Saturday, October 29, 2011, Jason Grout <jason-sage at creativetrax.com>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20111029/3b980bed/attachment.html>


More information about the NumPy-Discussion mailing list