From: Joris De R. <jo...@st...> - 2006-10-30 13:59:07
|
On Friday 27 October 2006 19:06, Francesc Altet wrote: [FA]: for example: [FA]: [FA]: In [67]: dtype([('f1', int16)]) [FA]: Out[67]: dtype([('f1', '<i2')]) [FA]: [FA]: In [68]: dtype([('f1', int16, (2,2))]) [FA]: Out[68]: dtype([('f1', '<i2', (2, 2))]) [FA]: [FA]: In [69]: dtype([('f1', int16, (2,2)), ('f3', int32)]) [FA]: Out[69]: dtype([('f1', '<i2', (2, 2)), ('f3', '<i4')]) Thanks, Francesc, for the examples! IMO, record arrays seem powerful, but also intimidating at a first glance. I think many didactical examples will help getting them into common use. I made some effort to get updated examples in the Numpy Example List: www.scipy.org/Numpy_Example_List#dtype www.scipy.org/Numpy_Example_List#array Could people who already have some experience with it, have a look at them and give me their opinion? Cheers, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |