[pymvpa] problem loading attributes file

William Graves william.wyatt.graves at gmail.com
Fri May 18 19:35:09 BST 2018


Dear PyMVPA experts,

In setting up an RSA analysis, I’m tying to load an attributes file, using this command:

attr = SampleAttributes(os.path.join(path, attrfile), literallabels=True, header=True)

It works fine for a relatively small attributes file, where each row is a word, and each column is a feature/attribute of that word, and there are less than 2000 columns. But what I want is to load a very sparse set of attributes, with 8030 columns, most (but not all) of which have a value of 0. When I use the exact same command but substitute the larger attributes file, I get this error message:

In [33]: attr = SampleAttributes(os.path.join(path, attrfile), literallabels=True, header=True)
  File "<string>", line 1
    SampleAttributes.5988 = property(fget=lambda self: self._get_attrib('5988'))
                        ^
SyntaxError: invalid syntax

I’m not sure where the “5988” is coming from. Is that hard coded in PyMPVA? I’d appreciate any help you can give.

Best,
Will

---
William W. Graves, Ph.D.
Assistant Professor, Department of Psychology
Rutgers, The State University of New Jersey
Smith Hall, Room 337
101 Warren Street, Newark, NJ  07102
Voice: 973-353-3947
Fax: 973-353-1171
http://lbbil.rutgers.edu




More information about the Pkg-ExpPsy-PyMVPA mailing list