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

Charles Doutriaux doutriaux1 at llnl.gov
Wed Apr 9 12:57:27 EDT 2008


Sorry, I can answer my own question (page 22 of numpy book) booleans are 
supposed to be "?" my mistake.

C.

Charles Doutriaux wrote:
> 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