[NumPy-Tickets] [NumPy] #1619: Loading aligned dtype error

NumPy Trac numpy-tickets@scipy....
Fri Sep 24 06:58:12 CDT 2010


#1619: Loading aligned dtype error
-----------------------------+----------------------------------------------
 Reporter:  Ihor.Melnyk      |       Owner:  somebody
     Type:  defect           |      Status:  new     
 Priority:  highest          |   Milestone:  2.0.0   
Component:  numpy.core       |     Version:  devel   
 Keywords:  dtype alignment  |  
-----------------------------+----------------------------------------------
 {{{
 import numpy as np

 t = np.dtype('i1, i4, i1', align=True)
 d = np.zeros(1, t)

 np.save("test.npy", d)
 data = np.load("test.npy")


 Traceback (most recent call last):
   File
 "D:\Projects\Cuda\Cuda_Git\pathwise\liinc\model\feeds\numpy_bug.py", line
 8, in <module>
     data = np.load("test.npy")
   File
 "D:\Projects\Cuda\Cuda_Git\pathwise\pathwise\vendors\lib64\x64\python\numpy\lib\npyio.py",
 line 314, in load
     return format.read_array(fid)
   File
 "D:\Projects\Cuda\Cuda_Git\pathwise\pathwise\vendors\lib64\x64\python\numpy\lib\format.py",
 line 440, in read_array
     shape, fortran_order, dtype = read_array_header_1_0(fp)
   File
 "D:\Projects\Cuda\Cuda_Git\pathwise\pathwise\vendors\lib64\x64\python\numpy\lib\format.py",
 line 358, in read_array_header_1_0
     dtype = numpy.dtype(d['descr'])
 ValueError: two fields with the same name

 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1619>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list