[Numpy-discussion] compressed and sqrt in numpy.ma

Charles Doutriaux doutriaux1@llnl....
Tue Sep 9 13:14:48 CDT 2008


The following is causing our code to crash, shouldn't .data be just ones ?

 >>> a = numpy.ma.ones((2,2))
 >>> b = numpy.ma.sqrt(a)
 >>> b.compressed().data
<read-write buffer for 0x9154460, size 32, offset 0 at 0xb764e500>



More information about the Numpy-discussion mailing list