Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 859 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 859 Bytes

A Heka file reader

contributions welcome DOI

Usage

## 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)