URL of experiment: https://gitlab.pavlovia.org/DuderstadtV/leson_onlinepilot_square_debug

Description of the problem:

Dear all,

unfortunately I have an unconvertable code component. It randomly generates a bi-colored pixel square:

```
def generate_px_image(sizex=128, anteil_l = 0.5, anteil_r = 0.5):
size = int(sizex **2)
n_black_l = round(size//2.0 * anteil_l)
n_black_r = round(size//2.0 * anteil_r)
n_l = np.ones(size//2) * -1
n_r = np.ones(size//2) * -1
n_l[0:int(n_black_l)] = 1
n_r[0:int(n_black_r)] = 1
n_l = np.random.permutation(n_l).reshape(int(sizex),int(sizex/2))
n_r = np.random.permutation(n_r).reshape(int(sizex),int(sizex/2))
return np.append(n_l,n_r,1)
def generate_px_image_alt(sizex=128, anteil=0.5):
return generate_px_image(sizex, anteil, anteil)
```

Does anyone know other solutions or has a suggestion how to convert this? Is numpy the problem?

Best regards,

Vinzenz