diff --git a/dot.py b/dot.py index c7e78c4..0d4ced0 100644 --- a/dot.py +++ b/dot.py @@ -581,7 +581,9 @@ def _newDotsXY(self, nDots): newDots = np.random.uniform(-0.5, 0.5, size = (nDots, 2)) * self.fieldSize return newDots - + +#updating the position of the dots for the square aparatus according to the direction of the movement + def getRandPosInSquareSide(self,sideNum): xy = np.zeros((1, 2)) if sideNum==0: @@ -598,7 +600,8 @@ def getRandPosInSquareSide(self,sideNum): xy[:,1] = 0.5*self.fieldSize[1] #set y return xy - + # main for updating dots (also here is where the dot in circle are updated) + def _update_OutOfBoundXY(self, outofbounds): nOutOfBounds = outofbounds.sum() allDir = self._dotsDir[outofbounds];