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

NumPy Trac numpy-tickets@scipy....
Wed Mar 16 11:36:55 CDT 2011


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

Comment(by mwiebe):

 Yes, that would work for the specific case of aligned data types, but it's
 possible (from C) to create data types with sizes that match neither the
 tightly packed nor the aligned pattern, and I think it's desirable to
 support that.

 I think at some point a function like 'dtype.restrict_to_fields(fields)'
 would be useful, which would make a data type exactly matching the dtype,
 but only having the fields mentioned. This would generate a more general
 data type, so to support the possibility of such a function it needs to be
 more general.

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


More information about the NumPy-Tickets mailing list