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:

format:
  type: ASpecD recipe
  version: '0.2'

datasets:
  - /path/to/dataset

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

  - kind: fitpy.singleanalysis
    type: SimpleFit
    properties:
      model: gaussian_model
      parameters:
        fit:
          amplitude:
            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.

Features

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

Installation

Install the package by running:

pip install fitpy

License

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

Uploaded Source

Built Distribution

fitpy-0.1.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file fitpy-0.1.1.tar.gz.

File metadata

  • Download URL: fitpy-0.1.1.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for fitpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 56dcd4df9bc3403e4024b6a31c8a2a655c86eb9061b395d4c7142779fc9be649
MD5 c9eac54a4eb4119edd1d30f4e5584212
BLAKE2b-256 1f0cf9a298e4086da017ac517b4f0f4ba65c9c457ce8493787e71592497553ce

See more details on using hashes here.

File details

Details for the file fitpy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fitpy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for fitpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 02ae0fdd074e8556b6dd439a10c72df2688ce6cdc1a2af7cd242384c620198d2
MD5 f921e015beac45f5868f2275c3de88cf
BLAKE2b-256 fbde63a24e9778d226a850da0d19460f56875782466bf8c57fb890a8cbdb0511

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