Hello!
I have used a jitter function (?) for ITI ($current_jitter1) in python offline and it works perfectly but apparently is not correct in JS:
if loop_pract.thisN == 0:
jitters = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0] * 2
shuffle(jitters)
current_jitter = jitters.pop()
thisExp.addData('jitter', current_jitter)
AND on JS:
if ((loop_pract.thisN === 0)) {
jitters = ([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0] * 2);
shuffle(jitters);
}
current_jitter = jitters.pop();
thisExp.addData("jitter", current_jitter);
$current_jitter1 serves as ITI duration.
I would be very grateful for your help!