Beispiel #1
0
 def read_abf(self, filename):
     h = dcio.abf_read_header(filename, 0)
     calfac = (1 / ((h['IADCResolution'] / h['fADCRange'])
             * h['fTelegraphAdditGain'][h['nADCSamplingSeq'][0]] *
             h['fInstrumentScaleFactor'][h['nADCSamplingSeq'][0]]))
     trace = dcio.abf_read_data(filename, h) * calfac # convert to pA
     dt = h['fADCSampleInterval'] / 1.0e6 # convert to seconds
     return trace, dt
Beispiel #2
0
 def read_abf(self, filename):
     h = dcio.abf_read_header(filename, 0)
     calfac = (1 / ((h['IADCResolution'] / h['fADCRange']) *
                    h['fTelegraphAdditGain'][h['nADCSamplingSeq'][0]] *
                    h['fInstrumentScaleFactor'][h['nADCSamplingSeq'][0]]))
     trace = dcio.abf_read_data(filename, h) * calfac  # convert to pA
     dt = h['fADCSampleInterval'] / 1.0e6  # convert to seconds
     ffilter = float(h['fSignalLowpassFilter'][h['nADCSamplingSeq'][0]])
     return trace, dt, ffilter