aptapy documentation#

Project logo

This is a small, pure-Python library providing statistical tools for online monitoring and analysis of experimental data, with a focus on histogramming, time series, and fitting. It is designed to be lightweight and easy to use, making it suitable for integration into existing data processing pipelines.

More specifically, the functionality provided by the package include:

  • one dimensional fitting models, providing a slick, object-oriented alternative to scipy.curve_fit, supporting arbitrarily complex fits with bound and/or frozen parameters; (this is somewhat similar in spirit to the beautiful, and much more mature, lmfit package, which is definitely worth looking at);

  • interactive n-dimensional histograms, supporting weights, error propagation, basic arithmetics, and fitting interface;

  • strip charts for online monitoring of series data, with support for interactive cursors and zooming, and for time series with POSIX timestamps.

The example gallery is probably the best place to start. Have fun!