From 8ce8e64fb74c0eeb29254aa6b1e4fe5813f8c131 Mon Sep 17 00:00:00 2001 From: tiborauer <tibor.auer@gmail.com> Date: Fri, 13 May 2022 14:54:30 +0100 Subject: [PATCH] FIX - in case of no response stim --- rMtS_multiblock.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rMtS_multiblock.py b/rMtS_multiblock.py index 8d08862..60254b9 100644 --- a/rMtS_multiblock.py +++ b/rMtS_multiblock.py @@ -533,9 +533,13 @@ if __name__ == '__main__': win.logOnFlip(level=logging.EXP, msg='Response - STOPPED') if len(SSO.buttonpresses): # no - SSO.buttonpresses[-1][0] = bNo; yes - SSO.buttonpresses[-1][0] = bYes + if responseDuration == 0: + onsetStim = recallForm + else: + onsetStim = responseStim logging.log(level=logging.EXP, msg='Button - {:.3f} - {}'.format(SSO.buttonpresses[-1][1],SSO.buttonpresses[-1][0])) thisExp.addData('resp.key',SSO.buttonpresses[-1][0]) - thisExp.addData('resp.rt',SSO.buttonpresses[-1][1]-(SSO.clock-trialClock.getTime())-responseStim.tStart) + thisExp.addData('resp.rt',SSO.buttonpresses[-1][1]-(SSO.clock-trialClock.getTime())-onsetStim.tStart) if expInfo['match type'] == 'single': isMatch = isin(thisMatch['match'],thisSample['sample']) -- GitLab