Hi. I’m trying to run my ‘go no go’ task and I run into a problem when I do not press a key (the ‘no go’ condition) this message comes up. Please help!
Hi @NMah, if you check for a correct response before you attempt to format the msg for correct answers, you should avoid this error. E.g.,
if resp.corr:
msg = "Correct! RT=%.3f" % (resp.rt)
else:
msg = "Incorrect"
Ah, then I guess no response is also a correct response? Is it the same error? If so, try:
if resp.corr and isinstance(resp.rt, float):
msg = "Correct! RT=%.3f" % (resp.rt)
elif resp.corr: # because no response is correct, but no RT is recorded
msg = "Correct!" # or just pass if no feedback here e.g., pass
else:
msg = "Incorrect"

