Doesn't running on Pavlovia. Maybe a problem to read a code

URL of experiment: Gustavo Campelo / Interferência Teste Final · GitLab

Description of the problem:

Hi,

My experiment is not running online. On Psychopy it runs properly, but on Pavlovia is gets stucked on “Initiating the experiment”. What could I do to fix this?

The experiment starts with a simple text and a keyboard, like all experiments I’ve made. Then starts a loop with a sequential loop type. The only thing that should be diferent it’s because I had to put a code to randomize the time of each stimulum and other to make a pause aftter a number of responses.

code_3:
from numpy.random import random, randint, normal, shuffle
current_jitter = round(random() * (4.0 - 0.5) + 0.5,1)
thisExp.addData(‘fix_time’, current_jitter) # record in the data for this trial

code_5:
trialCount=0
breakTrials = [24, 48, 72, 96, 120, 144, 168]
Begin Routine: trialCount = trialCount+1



Thank you

You cannot use numpy. There is no equivalent library that JS could import.

I’m actually not sure how to get a nice jitter without that. Maybe use “random.gauss( mu , sigma)”…?

Also, take a look at the following document to see what to do and what not to do when coding:

1 Like