OS (e.g. Win10): MAc OS 11.2.3
PsychoPy version (e.g. 1.84.x): 2021.1.2
Standard Standalone? (y/n) y
**What are you trying to achieve?:
I had an experiment in builder and on Pavlovia that I created last year, but it broke after updating to latest version. Even though I tried using older version, I cannot get it to run. So I re-created it from scratch, but now I get different errors.
Specifically, I need to display a stimulus for a random interval between 1200 and 1800ms
What did you try to make it work?:
I have the text stimulus and set its duration to $NC_Wait
I have a code component
NC_Wait =np.random.uniform(1.2,1.8)
I get this error message:
if tThisFlip > asarray($NC_Wait)-frameTolerance:
^
SyntaxError: invalid syntax
I tried taking away the $, using just random without np. and also leaving out the uniform.
Any ideas?