Skip to content

ZeitgeberH/HekaReader

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)

About

A Heka .dat file reader in Python3

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages