I’m trying to have my experiment read the excel file of each participant at the end of the study, so I can get values that have been chosen during their trials. Based on what I’ve seen in other topics, using expInfo is the way?
The filename is in this format: ‘#_xyz.xlsx’, where # is entered manually for each participant through the dialogue window. The file path would be ‘data#_xyz.xlsx’.
I get invalid argument (see below) every time I try to run it, which I assume is xlrd struggling to read the expInfo part. Is there a way to include it properly? Possibly by using pandas instead of xlrd?
thanks for you help, unfortunately that didn’t fix it. By using dumb ones I get syntax error and can’t start the experiment at all. I’ve tried playing around with different placements of both quotation marks, but to no avail.
Using $expInfo[‘participant’] in itself shouldn’t create any issues, right?
I am using Builder instead of Coder to program my PsychoPy-experiments. The following PsychoPy-experiment reads one of three files depending on the participant number from the folder data.
this worked for me, seems like my main issue was having the r in there, I printed the seperate values and they worked on their own. My inexperience with python was showing!