Skip to content

Commit

Permalink
Merge 0d563e3 into 336cdd7
Browse files Browse the repository at this point in the history
  • Loading branch information
pn2200 committed Mar 30, 2021
2 parents 336cdd7 + 0d563e3 commit 62eb7a7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions psychopy/experiment/routine.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,19 @@ def writeMainCode(self, buff):
# that's done decrement indent to end loop
buff.setIndentLevel(-1, True)

# For non-slip components, expressly store the stop time when the while loop ends
if useNonSlip:
code = ('\n'
'else:\n'
' for thisComponent in %sComponents:\n'
' if hasattr(thisComponent, "status") and thisComponent.status == STARTED:\n'
' # Stop this component and record the stopping time\n'
' thisComponent.tStop = t\n'
' thisComponent.frameNStop = frameN\n'
' win.timeOnFlip(thisComponent, "tStopRefresh")\n'
' win.flip()\n')
buff.writeIndentedLines(code % self.name)

# write the code for each component for the end of the routine
code = ('\n# -------Ending Routine "%s"-------\n'
'for thisComponent in %sComponents:\n'
Expand Down

0 comments on commit 62eb7a7

Please sign in to comment.