## import HekaHelpers which is a wrapper of main file: HEKA_Reader_MAIN
from HekaHelpers import HekaBundleInfo
## read Heka .dat file into a object
# test file is the full path for your Heka .dat file
bundleTester = HekaBundleInfo(testFile))
## Get sample rate
traceIndex = [0,0,0,0] ## [Group, Series, Sweep, Trace]
bundleTester.getSeriesSamplingRate(traceIndex)
## Get stimuli information
time, stim, stimInfo = bundleTester.getStim(traceIndex)
## Get data from a single sweep and single channel
data = bundleTester.getSingleTraceData(traceIndex)