code: def getNextEyeLocation(self, currentEyeLoc):
      
      possibleEyeLocs = []
      for loc in self.spatialConfig:
        shift = abs(max(loc - currentEyeLoc))
        if self.minDisplacement <= shift <= self.maxDisplacement:
          possibleEyeLocs.append(loc)
  
      nextEyeLoc = self.nupicRandomChoice(possibleEyeLocs)
  
      eyeDiff = nextEyeLoc  - currentEyeLoc
  
      return nextEyeLoc, eyeDiff
docs: Generate next eye location based on current eye location.
  
      @param currentEyeLoc (numpy.array)
          Current coordinate describing the eye location in the world.
  
      @return (tuple) Contains:
              nextEyeLoc  (numpy.array)
                  Coordinate of the next eye location.
  
              eyeDiff     (numpy.array)
                  Vector describing change from currentEyeLoc to nextEyeLoc.