'math' is not defined (Self-Paced Reading Task)

Hello,

I have used the code found here VESPR / Self Paced Reading · GitLab (pavlovia.org) to create a self-paced reading task, as I wanted to see how one is created. The issue that I am having is that I am getting the error NameError: name ‘math’ is not defined, I am unsure how to resolve this issue.

I have looked online to see if I can find the solution, however, I am unable to.

I appreciate any assistance in this.

Thank you,
David

Sorry about that. I didn’t properly bug test it locally.

Add import math to code_Clock

and you will also need to change Math to math in a few places in the Python code.

I’ve just pushed these edits online, but I’m using a pre-release of 2024.2.0 so there may be issues opening in an older version.

Thank you this worked perfectly!