Skip to main content

Python library for reading files in Axon Binary Format (ABF)

Project description

Quickstart

Display ABF Information:

import pyabf
abf=pyabf.ABF("filename.abf")
abf.info()

Plot all sweeps with matplotlib:

import pyabf
import matplotlib.pyplot as plt
abf=pyabf.ABF("filename.abf")
plt.figure(figsize=(8,4))
for sweepNumber in abf.sweepList:
  abf.setSweep(sweepNumber)
  plt.plot(abf.dataX,abf.dataY)
plt.ylabel(abf.unitsLong)
plt.xlabel(abf.unitsTimeLong)
plt.title(abf.ID)
plt.margins(0,.1)
plt.show()

Full pyabf API documentation, additional code examples, a pyabf cookbook, and low-level information about the ABF file format can be found at the pyABF project homepage: https://github.com/swharden/pyABF

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyabf-0.1.5.tar.gz (19.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page