Re: [Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread TheLonelyStar
Adter trying the same thing in matlab, I realized that my "tsv" file is not matrix-style. But this I mean, not all lines ave the same lenght (not the same number of values). What would be the best way to load this? Regards, Nathan -- View this message in context: http://www.nabble.com/numpy-l

[Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread TheLonelyStar
Hi, I am trying to load a tsv file using numpy.loadtxt: data = np.loadtxt('data.txt',delimiter='\t',dtype=np.float) And I get: - /usr/lib/python2.6/site-packages/numpy/lib/io.pyc in loadtxt(fname, dtype, comments, delimiter, converters, skiprows, usecols, unpack) 503