Error message: asarray not defined

Hey!

numpy.asarrary is a bit tricky, since it can perform a lot of different kinds of conversions. I would recommend writing a special solution for your cases.

setOri in PsychoJS takes a single number: JSDoc: Source: visual/VisualStim.js

So what you could try is, first write the value you’re trying to convert to the log to see what it looks like (see https://run.pavlovia.org/tpronk/tutorial_js_console_log), then pluck out the right value.

Best, Thomas