![]() The file format is open and supported by nearly all spreadsheet applications (including older versions of Excel and also OpenOffice). Terminal on Mac, or the Command Prompt on Windows) where you’ve opened up a Python shell, and that you have installed PsychoPy ® as a Python package:Įxcel 2007 files (.xlsx) are a useful and flexible way to output data as a spreadsheet. The following script assumes you’re using a command-line interface (e. csv files that are produced by default when running PsychoPy ® experiments. If you just want to recover data or first wish to try things out in a familiar format you can put all of the data in a. saveAsPickle()Ī method for saving all of the entries’ data in a Python pickle file saveAsWideText()Ī method for saving all of the entrie’s data in a. Each entry/dictionary in the list represents a single trial’s (a single routine ‘run’/iteration) data. Of particular interest might be the following attributes and methods of the Handler: entriesĪ list of dictionaries. They contain more information than the Excel or csv data files, and can even be used to (re)create those files. psydat files are ideal for batch analysis with a python script and plotting via matplotlib. The contents of the file can be explored with dir(), as any other python object. ![]() They can also be more directly used by experienced users with previous experience of python and, probably, matplotlib. psydat files can be useful for retrieving data that you forgot to explicitly tell PsychoPy ® to save. This is actually a TrialHandler or StairHandler object that has been saved to disk with the python cPickle module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |