def getDownsampleData(self, group, start, end , screenSize = 1024):
        bestLevel = 1
        data = self.getData(group,bestLevel)
        print group + " has been downsampled "+ str(bestLevel) + " times"
        start = int(start/bestLevel)
        end = int(end/bestLevel)
        if (end > data.shape[0]):
            print data.shape
            print "WARNING: you requested end = "+str(float(end))+" seconds but data length is "+str(float(data.shape[0] *bestLevel/10000))+" seconds"
            end=data.shape[0] -1

        return data[start:end]
dataset/ETHPy150Open tartavull/snn-rl/furtherFormulas/3dAnimScatterPlotHdf5.py/Anim3dScatterPlot.getDownsampleData/original