[Numpy-discussion] consensus

Benjamin Root ben.root@ou....
Sat Oct 29 22:16:31 CDT 2011


On Saturday, October 29, 2011, Jason Grout <jason-sage@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.scipy.org/pipermail/numpy-discussion/attachments/20111029/3b980bed/attachment-0001.html 


More information about the NumPy-Discussion mailing list