[Numpy-discussion] numpy.ma dtype.char set to "?"

Charles Doutriaux doutriaux1@llnl....
Wed Apr 9 11:50:31 CDT 2008


Hi I'm tracked down a bug in our code back to the numpy.ma

s2=numpy.array([[10,60],[65,45]])
s3=numpy.ma.masked_greater(s2,50.)
s3.mask.dtype.char
returns: '?'

In the Numeric -> numpy.ma (page 35) the "?" is not listed. Is it an 
omission in numpy.ma ? Or is it a valid char type ?
s3.dtype does say it is of type "bool"  which I guess should be 'B' or 
'b' no ?

Thanks,

C.



More information about the Numpy-discussion mailing list