[AstroPy] question on matplotlib's loadtxt

Derek Homeier derek@astro.physik.uni-goettingen...
Fri Nov 4 10:54:38 CDT 2011

On 4 Nov 2011, at 16:35, Erin Sheldon wrote:

> This is the proper syntax, and works for me on your file:
>  loadtxt('tmp/test.txt',dtype=[('x','f8'),('s','S5')], usecols=[0,5])
> You need to give a proper dtype with full field description.

Yep. But 
dtype({'names':['n1','n2','n3'], 'formats':[float,float,float]})

is a proper dtype, too, so I am cautious of the outcome 
(here, with numpy 1.6.1, it works too, of course).


More information about the AstroPy mailing list