URL of experiment:

Description of the problem:

Hi everyone! I had the following code in JS:

import {normal} from ‘numpy/random’;

var coinxlocation, coinylocation, splash1xlocation, splash1ylocation, splash2xlocation, splash2ylocation, splash3xlocation, splash3ylocation, splash4xlocation, splash4ylocation, splash5xlocation, splash5ylocation;

coinylocation = normal({“loc”: 0, “scale”: 0.1});

coinxlocation = normal({“loc”: 0, “scale”: PriorSD});

splash1ylocation = normal({“loc”: 0, “scale”: 0.1});

splash2ylocation = normal({“loc”: 0, “scale”: 0.1});

splash3ylocation = normal({“loc”: 0, “scale”: 0.1});

splash4ylocation = normal({“loc”: 0, “scale”: 0.1});

splash5ylocation = normal({“loc”: 0, “scale”: 0.1});

splash1xlocation = normal({“loc”: coinxlocation, “scale”: LikelihoodSD});

if ((splash1xlocation > 0.79)) {

splash1xlocation = Math.min(0.79, splash1xlocation);

}

if ((splash1xlocation < (- 0.79))) {

splash1xlocation = Math.max((- 0.79), splash1xlocation);

}

splash2xlocation = normal({“loc”: coinxlocation, “scale”: LikelihoodSD});

if ((splash2xlocation > 0.79)) {

splash2xlocation = Math.min(0.79, splash2xlocation);

}

if ((splash2xlocation < (- 0.79))) {

splash2xlocation = Math.max((- 0.79), splash2xlocation);

}

splash3xlocation = normal({“loc”: coinxlocation, “scale”: LikelihoodSD});

if ((splash3xlocation > 0.79)) {

splash3xlocation = Math.min(0.79, splash3xlocation);

}

if ((splash3xlocation < (- 0.79))) {

splash3xlocation = Math.max((- 0.79), splash3xlocation);

}

splash4xlocation = normal({“loc”: coinxlocation, “scale”: LikelihoodSD});

if ((splash4xlocation > 0.79)) {

splash4xlocation = Math.min(0.79, splash4xlocation);

}

if ((splash4xlocation < (- 0.79))) {

splash4xlocation = Math.max((- 0.79), splash4xlocation);

}

splash5xlocation = normal({“loc”: coinxlocation, “scale”: LikelihoodSD});

if ((splash5xlocation > 0.79)) {

splash5xlocation = Math.min(0.79, splash5xlocation);

}

if ((splash5xlocation < (- 0.79))) {

splash5xlocation = Math.max((- 0.79), splash5xlocation);

}

Coin.setPos([coinxlocation, coinylocation]);

Splash1.setPos([splash1xlocation, splash1ylocation]);

Splash2.setPos([splash2xlocation, splash2ylocation]);

Splash3.setPos([splash3xlocation, splash3ylocation]);

Splash4.setPos([splash4xlocation, splash4ylocation]);

Splash5.setPos([splash5xlocation, splash5ylocation]);

There was an error on the first line [import {normal} from ‘numpy/random’] which caused me stuck on “initialising the experiment”.

I looked through the cribe sheet which suggested "remove all references to avoid the experiment crashing while ‘initialising the experiment’ ". But I am bit confused about what that means in my scenario. Any help would be appreciated!

Thanks in advance!

Luisa