I am using version 3.0.5, and on my conditions file I have a “corrAns” column, but when I tell the program to “store correct” and put $corrAns for what the correct answer should be, it doesn’t display whether the participant’s answer is correct on the data sheet or not. Furthermore, it returns this code:
-------Ending Routine “test”-------
for thisComponent in testComponents: if hasattr(thisComponent, "setAutoDraw"): thisComponent.setAutoDraw(False) # check responses if testresponse.keys in ['', , None]: # No response was made testresponse.keys=None # was no response the correct answer?! if str(corrAns).lower() == 'none': testresponse.corr = 1; # correct non-response else: testresponse.corr = 0; # failed to respond (incorrectly) # store data for tests (TrialHandler) tests.addData('testresponse.keys',testresponse.keys) tests.addData('testresponse.corr', testresponse.corr) if testresponse.keys != None: # we had a response tests.addData('testresponse.rt', testresponse.rt)
Even when no response is given, a 0 is still displayed in the “testresponse.corr” column. Any suggestions?