Re: [Numpy-discussion] Numpy structures

2012-06-08 Thread Nathaniel Smith
On Fri, Jun 8, 2012 at 11:31 AM, Bob Cowdery wrote: > Hi all, > > I am reading a datagram which contains within it a type. The type > dictates the structure of the datagram. I want to put this into a numpy > structure, one of which is: > np.zeros(1,dtype=('2uint8,uint8,uint8,uint32,8uint8,504uint8

[Numpy-discussion] Numpy structures

2012-06-08 Thread Bob Cowdery
Hi all, I am reading a datagram which contains within it a type. The type dictates the structure of the datagram. I want to put this into a numpy structure, one of which is: np.zeros(1,dtype=('2uint8,uint8,uint8,uint32,8uint8,504uint8,8uint8,504uint8')) As I don't know what I'm getting until I've