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

Documentation

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

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.4.tar.gz (11.5 kB view details)

Uploaded Source

File details

Details for the file pyabf-0.1.4.tar.gz.

File metadata

  • Download URL: pyabf-0.1.4.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyabf-0.1.4.tar.gz
Algorithm Hash digest
SHA256 31e76e73b81a85f1b575fcf22ce84fcba818c68dd2cad4750c0b59c43c341796
MD5 59d31f42b5dae061c608a8f3b377f92d
BLAKE2b-256 d624532380efc8979530f1ca52e91a83440737808f4adb5729c70ae7aacc2b33

See more details on using hashes here.

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