I have an experiment with two stimuli lists, the lists are coded into a column called “version” in one single csv file. I would like the experimenter to chose whether the participant does the “A” or the “B” list. How can I do this in PsychoPy?
Sort the spreadsheet by version.
Add group to the starting dialogue box with options ['A','B']
Then add code along the lines of:
useRows = ''
if expInfo['group'] == 'A':
useRows = 0:40
elif expInfo['group'] == 'B':
useRows = 40:80
Avoid multiple spreadsheets
One way of counterbalancing blocks in an experiment is to have an outer loop which points to a spreadsheet which contains the names of different spreadsheets to use in an inner loop. The main issue with this is that if you have multiple spreadsheets with the same columns and you want to make a change, you have to make it to all of them. The other more minor issue is that you may have to specify the spreadsheets as additional resources in Experiment Settings / Online.
…