[pymvpa] Advice for input to SampleAttributes? Text file may have too many columns?
Lauren Nelson
lmnelson at bu.edu
Tue Mar 21 19:53:08 UTC 2017
Hello all,
I'm having trouble passing a text file to SampleAttributes, and I -think-
what my problem might be is that my text file has more columns than I
thought it did. Vim seems to think it has 3894 columns. I have a couple
questions. Does the following error message seem consistent with this? And
if so, is there a possible way to fix this? Even better, is there a way to
read in an Excel spreadsheet? That's the file format I'm starting with.
>>> attr = SampleAttributes(attr_fname)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/mvpa2/misc/io/base.py", line 426,
in __init__
sep=None, dtype=dtypes)
File "/usr/lib/python2.7/dist-packages/mvpa2/misc/io/base.py", line 118,
in __init__
dtype=dtype, skiplines=skiplines)
File "/usr/lib/python2.7/dist-packages/mvpa2/misc/io/base.py", line 258,
in _from_file
"of columns in header [%i]." % (len(l), len(hdr))
RuntimeError: Number of entries in line [3] does not match number of
columns in header [2].
Thanks for your help!
Lauren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20170321/3eff2bbb/attachment.html>
More information about the Pkg-ExpPsy-PyMVPA
mailing list