Hi Peter

2009/7/3 Peter Kelley <[email protected]>:
> I get TypeError: data type not understood, and I think it is because the
> event format is a list of strings not data types. Does anyone have know how
> to convert the list of strings into the data types for dtype.

In your example the problem actually comes in with the string 'long',
which cannot be converted to a dtype using

dtype('long')

As for the strings, I think you'll have to pick the length of the
longest string and use that as the dtype:

np.dtype('S5') # where 5 is the longest

Good luck.

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

Reply via email to