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 —
:class:`~blackchirp.BCExperiment`, :class:`~blackchirp.BCFTMW`,
:class:`~blackchirp.BCFid`, :class:`~blackchirp.BCLIF`, and
:class:`~blackchirp.BCLifTrace` — together with two module-level
helpers, :func:`~blackchirp.coaverage_fids` and
:func:`~blackchirp.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 :doc:`python/example` walk through end-to-end
CP-FTMW and LIF analysis sessions.
.. toctree::
:caption: Examples
python/example
.. toctree::
:caption: Class Documentation
:titlesonly:
python/bcexperiment
python/bcftmw
python/bcfid
python/bclif
python/bcliftrace
.. toctree::
:caption: Module-level Helpers
:titlesonly:
python/coaverage