Psydat saveAsWideText no attribute 'appendFiles'

I’m trying to examine some data from psychopy 3.1.2 and I’m running into a problem with saveAsWideText:

In [11]: psydata.saveAsWideText('1001_psydata.txt')
AttributeError                            Traceback (most recent call last)
<ipython-input-11-b5692e6c545e> in <module>
----> 1 psydata.saveAsWideText('1001_psydata.txt')

~/opt/anaconda3/envs/psychopy/lib/python3.6/site-packages/psychopy/data/ in saveAsWideText(self, fileName, delim, matrixOnly, appendFile, encoding, fileCollisionMethod, sortColumns)
    315         if appendFile is None:
--> 316             appendFile = self.appendFiles
    318         # create the file or send to stdout

AttributeError: 'ExperimentHandler' object has no attribute 'appendFiles'

Here’s a link to the data since I can’t upload a psydat file: data file

Relatedly, one of the main things I want to try to find that I’m not seeing in psydata.entries is the image file presented on a specific trial, i.e., within a Builder Image component the image ‘set every repeat’. Is this recorded in the psydat or would this information only be in a .log saved at a specific level?


This error occurred because appendFile is a required field for saveAsWideText, though this isn’t clear in the examples I’ve seen in the documentation and in the forum. So the following command produced the expected output.

psydata.saveAsWideText('1001_test.txt', appendFile=False, delim=',')