FRBSignalGeneration.py
def TimeBin(self,factor):
        """
        Rebins the time series by a factor.
        """
        
        # Make sure you can divide the timeseries properly
        
        if self.shape[0] % factor > 0:
            if VERBOSE:
                print "Cannot cleanly divide the TimeSeries. Did nothing."
        else:

            shape = (self.shape[0]/factor,self.shape[1])
            sh = shape[0],self.shape[0]//shape[0],shape[1],self.shape[1]//shape[1]
            self.timeSeries = self.timeSeries.reshape(sh).mean(-1).mean(1)
            
            self.sampTime = self.sampTime*factor
            self.shape = self.timeSeries.shape

        Rebins the time series by a factor.
        
Rebins the time series by a factor.
Rebins the time series by a factor .
def TimeBin(self,factor):
        if self.shape[0] % factor > 0:
            if VERBOSE:
                print "Cannot cleanly divide the TimeSeries. Did nothing."
        else:
            shape = (self.shape[0]/factor,self.shape[1])
            sh = shape[0],self.shape[0]//shape[0],shape[1],self.shape[1]//shape[1]
            self.timeSeries = self.timeSeries.reshape(sh).mean(-1).mean(1)
            self.sampTime = self.sampTime*factor
            self.shape = self.timeSeries.shape
def TimeBin ( self , factor ) : if self . shape [ 0 ] % factor > 0 : if VERBOSE : print "Cannot cleanly divide the TimeSeries. Did nothing." else : shape = ( self . shape [ 0 ] / factor , self . shape [ 1 ] ) sh = shape [ 0 ] , self . shape [ 0 ] // shape [ 0 ] , shape [ 1 ] , self . shape [ 1 ] // shape [ 1 ] self . timeSeries = self . timeSeries . reshape ( sh ) . mean ( - 1 ) . mean ( 1 ) self . sampTime = self . sampTime * factor self . shape = self . timeSeries . shape
Rebins the time series by a factor.
Rebins the time series by a factor .
"""
        Rebins the time series by a factor.
        """ # Make sure you can divide the timeseries properly
self
factor