Thanks Pierre,

For some reason

'formats':[eval(b) for b in event_format]

didn't work, but as you said should it fail try

dtype([(x,eval(b)) for (x,b) in zip(event_fields, event_format)])

which seems to be working.

Interestingly before when I had typed this out by hand, both using
tuples and a dictionary seemed to work as they should.

Thanks again,

-Peter
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to