Error: The argument should be an array of numbers of length 3

URL of experiment: https://run.pavlovia.org/andrehsu/relative-recency

Description of the problem:
I have encountered an error of ‘the argument should be an array of numbers of length 3’ when I am trying to pilot the experiment. I wonder if the problem would be relevant to the fill colour of the polygon stimuli in the experiment. It would be great to hear any advice! Thank you!

Andre

Hey Andre,

To find out if this is the problem, you could pinpoint the line of code where this error originates from. See this tutorial: tutorial_js_semantic_error [PsychoPy]

Best, Thomas

Might this be your solution?

Dear Thomas,
Thank you very much for your comment and the tutorial is super helpful. I think I have spotted the mistake now!

Dear wakecarter,
Thank very much for your advice. I went through my experiment again and the error was caused by missing comma in defining the fill colour of the polygon, thank you very much!

1 Like