[NumPy-Tickets] [NumPy] #2211: Alignment doesn't work for array of structs

NumPy Trac numpy-tickets@scipy....
Wed Sep 5 05:10:44 CDT 2012


#2211: Alignment doesn't work for array of structs
-------------------------+--------------------------------------------------
 Reporter:  Ihor.Melnyk  |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  highest      |   Milestone:  2.0.0   
Component:  numpy.core   |     Version:  1.6.2   
 Keywords:  alignment    |  
-------------------------+--------------------------------------------------
 array of subtype alignment

 {{{
 t = np.dtype([('a', '|i1'), ('b', [('f0', '<i2'), ('f1', '<f4')], 2)],
 align=True)
 }}}

 actual dtype

 {{{
 [('a', '|i1'), ('b', [('f0', '<i2'), ('f1', '<f4')], (2,))]
 }}}

 expected dtype

 {{{
 [('a', '|i1'), ('', '|V3'), ('b', [('f0', '<i2'), ('', '|V2'), ('f1',
 '<f4')], 2)]
 }}}

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


More information about the NumPy-Tickets mailing list