[Numpy-discussion] bug in numpy recarray ?

Travis Oliphant oliphant.travis at ieee.org
Mon Jul 24 14:24:48 CDT 2006


Sebastian Haase wrote:
> Hi!
> I'm trying to convert my numarray records code to numpy.
>  >>> type(m.hdrArray)
> <class 'numpy.core.records.recarray'>
>  >>> m.hdrArray.d
> [(array([ 1.,  1.,  1.], dtype=float32),)]
>
> but I get:
>  >>> m.hdrArray[0].getfield('d')
> 5.43230922614e-312
>
> Am I missing something or is this a bug ?
>   

Probably a bug.   The getfield method needs more testing. File a ticket.

-Travis





More information about the Numpy-discussion mailing list