I could use some help on a headache we have not been able to figure out.
I have an experiment where a participant should click on 1 of 8 jpegs pictures, 4 of the 8 pictures are count as “correct”, but I cannot get the contingency table to evaluate this. It is attached TestVegasOddsTest.xlsx (29.7 KB)
Working in builder, this is my code.
for stimulus in [DscmImg1, DscmImg2, DscmImg3, DscmImg4, DscmImg5, DscmImg6, DscmImg7, DscmImg8]: # check if the mouse is pressed within the current one: if mouse.isPressedIn(stimulus): # Yes, so store the reaction time in the data: thisExp.addData('RT', t) # check if the stimulus' image filename matches the correct answer: if stimulus.image in corrAns2: thisExp.addData('correct', 1) correct_responses = correct_responses + 1 else: thisExp.addData('correct', 0) # end the trial once done here: continueRoutine = False # stop any further checking: break
What did you try to make it work?:
I have tried adjusting to---- if stimulus.image in eval(corrAns2):
However, either way, the output continues to record all responses as “0” or incorrect, even when a correct answer is selected.
Any thoughts would be appreciated. Thanks!