[Numpy-discussion] Nested recarrays with subarrays and loadtxt: a bug in loadtxt?
Stéfan van der Walt
Wed May 27 17:57:12 CDT 2009
2009/5/27 Fernando Perez <email@example.com>:
> I'm wondering if the code below illustrates a bug in loadtxt, or just
> a 'live with it' limitation.
I'm not sure whether this is a bug or not.
By specifying the dtype
> dt = dtype(dict(names=['name','x','y','block'],
you are saying "column four contains 6 integers", which is a bit of a
strange notion. If you want this to be interpreted as "the last 6
columns should be stored in block", then a simple modification to
flatten_dtype should do the trick.
More information about the Numpy-discussion