Python Module
Important
These docs describe the 2.0 pre-release of the blackchirp
Python module. The stable release on PyPI (0.0.11) corresponds to
the Blackchirp 1.1.x docs,
so a plain pip install blackchirp installs that version. To
install the pre-release version that matches these docs, use:
pip install --pre blackchirp
The companion blackchirp Python package loads experiment folders
from disk and reproduces the bulk of Blackchirp’s data-processing
pipeline (FID Fourier transforms, sideband deconvolution, LIF gate
integration) without depending on any of Blackchirp’s C++ runtime. It
is published on the Python Package Index and installs with:
pip install blackchirp
The package depends only on numpy, scipy, and pandas and bundles no plotting library, leaving visualization to the downstream pipeline.
Five top-level classes are exported from the package root —
BCExperiment, BCFTMW,
BCFid, BCLIF, and
BCLifTrace — together with two module-level
helpers, coaverage_fids() and
coaverage_spectra(), for combining FIDs across
separate Blackchirp experiments. The recommended import style is:
from blackchirp import *
which brings all of them into the current namespace. The example notebooks under Python Module Examples walk through end-to-end CP-FTMW and LIF analysis sessions.
Examples
Class Documentation
Module-level Helpers