How to create a monitor configuration is explained in the next section! Monitors #Īnother important element of each experiment, both in the Coder and Builder interface, is the monitor that it is displayed on. Here, you need to fill in the name of the specific monitor configuration you want to use in your experiment. To see the effect of a different unit for size, change “Units” from “height” to, e.g., “pixels” and run the demo experiment again.Īnother important setting is the Monitor. Please read the excellent explanation of the different settings for the “Units” on the PsychoPy website. Another important setting is the “Units” that Psychopy should use. You can read more about PsychoPy’s color spaces here. The color specifies gray (as you’ve seen in the demo). These values can range from -1 (minimum amount) to 1 (maximum amount). The standard background color is in RGB space, where the first value specifies the amount of Red, the second value the amount of Green, and the third value the amount of Blue. You can also choose to run the experiment full screen (the default) or whether to specify a particular window size (in pixels) and the background color used in the window (“Color”) and the colorspace used through the experiment (“Color space”). The “Screen” option (default: 1), for example, specifies on which screen the experiment should run in case of multiple monitor set-ups. The “Online” tab contains various settings to export your experiment to a format that can be used online (only applicable to Builder experiments), but this is beyond the scope of this course.įinally, the “Screen” tab contains several important settings that specify the experiment window. Currently, Psychopy advises to use the Psychtoolbox (ptb) soundlibrary. Under the “Audio” tab, you can specify which soundlibrary Psychopy should use. We recommend always saving the log and the “trial-by-trial” CSV files. In addition to the mandatory “psydat” file (which we personally never used), you can also have Psychopy save an extensive log file and CSV files. If you’re feeling adventurous, try using F-strings instead of format specifiers! This way, you can customize your output filenames according to the information provided by the participant!Īssuming you added the “age” field to the info dialog earlier, try to add the participant’s age to the output filename such that if, for example, participant 01 who is 29 years old does the experiment, the output filename will be sub-01_age-29_intropy_demo (+ extension). Here, expInfo, refers to a Python variable (a dictionary) that represents the info dialog pop-up (plus some additional information). In our demo experiment, we furthermore specified that the filename should be sub-%s_%s', in which the format specifiers ( %s) are replaced by the participant identifier ( expInfo) and experiment name ( expInfo). By default, a new directory, data, is created in which the files will be saved. Next to “Data filename”, you can specify the filename of the datafiles that will be saved. Under the “Data” tab, there are various options to fine-tune how you want your experimental data to be saved. Just before the experiment window opens, you should see the info dialog pop-up! Then, run the demo experiment again (press the escape key to quit). I don't know what else to do.Enable the info dialog by clicking the checkbox next to “Show info dialog” and add a new field, “age”, to the info dialog (without a default value). I've read the forums on this but none of the suggestions have helped so far. I've tried case-sensitive (XlsxWriter vs. I've tried updating xlsxwriter (it's currently 1.0). py file I'm trying to run in Psychopy, and I just can't get it to work. I've tried moving it and copying it to all different levels of my Python folder in "Applications" as well as putting it in the same folder as my. I know it's installed because I can search for it (it says it's located in /Library/Frameworks/amework/Versions/2.7/lib/python2.7/site-packages/XlsxWriter-1.0.0-py2.7.egg) I've tried all different versions of Python and Psychopy, and for the life of me, I can't get rid of this error when I try to run Psychopy: "No module named xlsxwriter" I've tried installing xlsxwriter on MacOS
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |