[NumPy-Tickets] [NumPy] #1873: Recarrays do not work with numpy.lib.stride_tricks.as_strided

NumPy Trac numpy-tickets@scipy....
Mon Jun 20 19:07:28 CDT 2011


#1873: Recarrays do not work with numpy.lib.stride_tricks.as_strided
--------------------+-------------------------------------------------------
 Reporter:  irwin   |       Owner:  somebody   
     Type:  defect  |      Status:  new        
 Priority:  normal  |   Milestone:  Unscheduled
Component:  Other   |     Version:  1.6.0      
 Keywords:          |  
--------------------+-------------------------------------------------------

Comment(by irwin):

 Some of the code got mangled, here it is again:

 import numpy

 import numpy.lib.stride_tricks

 t = numpy.dtype({'names': ['a', 'b'], 'formats': [numpy.float64,
 numpy.float64]},
 align = True)

 a = numpy.zeros(10, dtype = t)

 print a

 print numpy.lib.stride_tricks.as_strided(a)

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


More information about the NumPy-Tickets mailing list