[Numpy-discussion] equality with masked object

Lionel Roubeyrie lroubeyrie at limair.asso.fr
Thu Apr 27 08:41:03 CDT 2006


Hi,
thanks for your answer, but my problem is that I want to obtain the index of 
the max value in each column of a 2d masked array, then how can I do that 
without comparaison?
Thanks

Le Mardi 25 Avril 2006 15:10, Sasha a écrit :
> On 4/25/06, Lionel Roubeyrie <lroubeyrie at limair.asso.fr> wrote:
> > Why 5.0 == -- return True? A float is it the same as a masked object?
> > thanks
>
> It does not.  It returns ma.masked :
> >>> test[3] is ma.masked
>
> True
>
> You should not access masked data - it makes no sense.  The current
> behavior is historical and I don't really like it.  Masked scalars are
> replaced by ma.masked singleton in subscript operations to allow a[i]
> is masked idiom.  In my view it is not worth the trouble, but my
> suggestion to get rid of that feature was not met with much
> enthusiasm.
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion

-- 
Lionel Roubeyrie - lroubeyrie at limair.asso.fr
LIMAIR
http://www.limair.asso.fr





More information about the Numpy-discussion mailing list