|
@@ -2,7 +2,7 @@
|
|
|
# -*- coding: utf-8 -*-
|
|
|
"""
|
|
|
This experiment was created using PsychoPy3 Experiment Builder (v2023.2.3),
|
|
|
- on Wed Dec 13 11:12:24 2023
|
|
|
+ on Sat Dec 16 23:08:01 2023
|
|
|
If you publish work using this script the most relevant publication is:
|
|
|
|
|
|
Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Lindeløv JK. (2019)
|
|
@@ -614,7 +614,7 @@ def run(expInfo, thisExp, win, inputs, globalClock=None, thisSession=None):
|
|
|
|
|
|
# --- Run Routine "decision" ---
|
|
|
routineForceEnded = not continueRoutine
|
|
|
- while continueRoutine:
|
|
|
+ while continueRoutine and routineTimer.getTime() < 0.1:
|
|
|
# get current time
|
|
|
t = routineTimer.getTime()
|
|
|
tThisFlip = win.getFutureFlipTime(clock=routineTimer)
|
|
@@ -645,7 +645,7 @@ def run(expInfo, thisExp, win, inputs, globalClock=None, thisSession=None):
|
|
|
# if feedback_bar is stopping this frame...
|
|
|
if feedback_bar.status == STARTED:
|
|
|
# is it time to stop? (based on global clock, using actual start)
|
|
|
- if tThisFlipGlobal > feedback_bar.tStartRefresh + config_info['buffer_length']-frameTolerance:
|
|
|
+ if tThisFlipGlobal > feedback_bar.tStartRefresh + 0.1-frameTolerance:
|
|
|
# keep track of stop time/frame for later
|
|
|
feedback_bar.tStop = t # not accounting for scr refresh
|
|
|
feedback_bar.frameNStop = frameN # exact frame index
|
|
@@ -681,8 +681,11 @@ def run(expInfo, thisExp, win, inputs, globalClock=None, thisSession=None):
|
|
|
if hasattr(thisComponent, "setAutoDraw"):
|
|
|
thisComponent.setAutoDraw(False)
|
|
|
thisExp.addData('decision.stopped', globalClock.getTime())
|
|
|
- # the Routine "decision" was not non-slip safe, so reset the non-slip timer
|
|
|
- routineTimer.reset()
|
|
|
+ # using non-slip timing so subtract the expected duration of this Routine (unless ended on request)
|
|
|
+ if routineForceEnded:
|
|
|
+ routineTimer.reset()
|
|
|
+ else:
|
|
|
+ routineTimer.addTime(-0.100000)
|
|
|
|
|
|
# --- Prepare to start Routine "feedback" ---
|
|
|
continueRoutine = True
|