def LoadTime(self):

        samplerate = self.samplerate
        length = LecroyBinarySlicing.LecroyBinaryWaveform(self.data_file_path).WaveArray()
        time = length/samplerate
        #recordtime = LecroyBinarySlicing.LecroyBinaryWaveform(self.data_file_path).ReturnRecordTime()
        #print recordtime
        return time
def LoadTime(path):

    samplerate = 2.5e9
    length = LecroyBinarySlicing.LecroyBinaryWaveform(path).WaveArray()
    time = length / samplerate
    #recordtime = LecroyBinary.LecroyBinaryWaveform(path).ReturnRecordTime() # Time Bin empty???
    #print recordtime
    return time
 def Load_Data(self):
     """
     Loopable through counter in function call
     raw_data from filecontent
     """
     # return all segments 
     #self.raw_data,self.time=LecroyBinary.LecroyBinaryWaveform(self.data_file_path).RealGetNextWaveArrayDataAndTime(it1) # memory leak
     #raw_data=LecroyBinary.LecroyBinaryWaveform(self.data_file_path).GetNextWaveArrayData() # reshape outside loop
     #time=LecroyBinary.LecroyBinaryWaveform(self.data_file_path).GetNextWaveArrayTime() #reshape outside loop
     raw_data, time = LecroyBinarySlicing.LecroyBinaryWaveform(self.data_file_path).JustAllGetNextWaveArrayDataAndTime()#raw output from lecroybinary        
     return raw_data,time
    def GetNumDataPoints(self):

        self.numdata = LecroyBinarySlicing.LecroyBinaryWaveform(self.data_file_path).WaveArray()
        return self.numdata
 def GetSegmentCount(self):
     self.ranger = LecroyBinarySlicing.LecroyBinaryWaveform(self.data_file_path).SubArray()
     return self.ranger