Skip to content

Commit

Permalink
Merge pull request #5879 from TEParsons/release-rt-duration
Browse files Browse the repository at this point in the history
BF: Fix JS code when Routine has fixed duration in S
  • Loading branch information
peircej committed Sep 4, 2023
2 parents 968f1e0 + 71c88ec commit b2d54f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psychopy/experiment/components/routineSettings/__init__.py
Expand Up @@ -265,7 +265,7 @@ def writeFrameCodeJS(self, buff):
# Stop after given number of seconds
code = (
f"// is it time to end the Routine? (based on local clock)\n"
f"if (t > %(stopVal)s-frameTolerance) {{\n"
f"if (t > %(stopVal)s) {{\n"
)
elif self.params['stopType'].val == 'frame N':
# Stop at given frame num
Expand Down

0 comments on commit b2d54f8

Please sign in to comment.