![]() ![]() This form of data file is the default data output from Builder experiments as of v1.74.00. Ideally, we should provide a demo script here for fetching and plotting some data (feel free to contribute). psydat file) fpath = 'path/to/file.psydat' psydata = fromFile ( fpath ) for entry in psydata. 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:įrom psychopy.misc import fromFile # (replace with the file path to your. 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. See Logging data for further information. The level of content in them depends on you. Log files are actually rather difficult to use for data analysis but provide a chronological record of everything that happened during your study. Excel data file for a quick browse, Log file to check for error messages and data file (.psydat) for detailed analysis) Log file ¶ Multiple file types can be output from a single experiment (e.g. There are a number of different forms of output that PsychoPy ® can generate, depending on the study and your preferred analysis software. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |