Skip to main content

Framework for fitting models to (spectroscopic) data.

Project description

FitPy is a framework for the advanced fitting of models to spectroscopic data focussing on reproducibility. Supported are semi-stochastic sampling of starting conditions, global fitting of several datasets at once, and fitting several concurrent models to one dataset. FitPy builds upon and extends the ASpecD framework. At the same time, it relies on the SciPy software stack and on lmfit for its fitting capabilities.

Making use of the concept of recipe-driven data analysis, actual fitting no longer requires programming skills, but is as simple as writing a text file defining both, the model and the fitting parameters in an organised way. Curious? Have a look at the following example:

  type: ASpecD recipe
  version: '0.2'

  - /path/to/dataset

  - kind: model
    type: Gaussian
        position: 1.5
        width: 0.5
    from_dataset: /path/to/dataset
    output: model
    result: gaussian_model

  - kind: fitpy.singleanalysis
    type: SimpleFit
      model: gaussian_model
            start: 5
            range: [3, 7]
    result: fitted_gaussian

For more general information on the FitPy framework see its homepage, and for how to use it, its documentation.


A list of features, planned for the first public release:

  • Framework for the advanced fitting of models to spectroscopic data focussing on reproducibility.
  • Simple user interface requiring no programming skills.
  • Semi-stochastic sampling of starting conditions (Latin hypercube sampling, LHS)
  • Global fitting of several datasets at once
  • Fitting of several concurrent models (i.e., “species”) to one dataset


FitPy is currently under active development and still considered in Alpha development state. Therefore, expect frequent changes in features and public APIs that may break your own code. Nevertheless, feedback as well as feature requests are highly welcome.


Install the package by running:

pip install fitpy


This program is free software: you can redistribute it and/or modify it under the terms of the BSD License.

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

fitpy-0.1.0.tar.gz (17.1 kB view hashes)

Uploaded source

Built Distribution

fitpy-0.1.0-py3-none-any.whl (18.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page