URL of experiment: Pavlovia
Description of the problem:
In builder i use this code to display my images in a random position within a circle but when i try to take the experiment online it will not initalize due to the numpy being use - np.arange can someone help with how the code can be adjusted to work online without having to import numpy?
def isoEccentric(nPoints, radius, yLocs, xLocs):
degreePoints=360/nPoints
angles=np.arange(0,360,degreePoints)
angles=[convertpi/180 for convert in angles]
xyss=[[radiuscos(deg)+xLocs,radius*sin(deg)+yLocs] for deg in angles]
return xyss
xyss=isoEccentric(nPoints=8, radius=0.3, yLocs=0, xLocs=0)
shuffle(xyss)
thisExp.addData(“loci”,xyss)