[Numpy-discussion] possible bug in dtype for records

Travis Oliphant oliphant at ee.byu.edu
Wed Feb 15 11:09:11 CST 2006


Stefan van der Walt wrote:

>Using
>
>In [3]: numpy.__version__
>Out[3]: '0.9.5.2024'
>
>I see the following:
>
>In [4]: import numpy as N
>
>In [5]: ctype = N.dtype({'names': ('x', 'y', 'z'), 'formats' : [N.float32, N.float32, N.float32]})
>
>In [6]: ctype
>Out[6]: dtype([('x', '<f4'), ('y', '<f4'), ('z', '<f4')])
>
>In [7]: N.array([(1,2,3), (4,5,6)], dtype=ctype)
>Segmentation fault
>  
>
A segmentation fault is never expected behavior.  Thanks for pointing 
this out.  I'll see if I can figure out what is wrong.

-Travis





More information about the Numpy-discussion mailing list