Skip to main content

Fitspy (A generic tool to fit spectra in python)

Project description

Fitspy

Fitspy is a generic tool dedicated to fit spectra in python with a GUI that aims to be as simple and intuitive to use as possible.

Processed spectra may be independent of each other or may result from 2D-maps acquisitions.


Example of fitspy 2D-map frame interacting with the main GUI.

The fitting algorithm has multiprocessing capabilities and relies on the lmfit library.
Bounds and constraints can be set on each peaks models parameter.

The peak models considered in fitspy are :

  • Gaussian
  • Lorentzian
  • Asymetric Gaussian
  • Asymetric Lorentzian
  • Pseudovoigt

A constant, linear, parabolic, gaussian or exponential background can also be added in the fitting.

All actions allowed with the GUI can be easily executed in script mode (see examples here). These actions (like baseline definition and removal, peaks definition, parameters constraints, ...) can be saved in a 'fitspy' model and replayed as is or applied to other new spectra.

See the documentation for more details.

Installation

pip install fitspy

Authors informations

In case you use the results of this code in an article, please cite:

  • (To come)

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

fitspy-2023.4.tar.gz (46.7 kB view details)

Uploaded Source

Built Distribution

fitspy-2023.4-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file fitspy-2023.4.tar.gz.

File metadata

  • Download URL: fitspy-2023.4.tar.gz
  • Upload date:
  • Size: 46.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for fitspy-2023.4.tar.gz
Algorithm Hash digest
SHA256 2668f0e05eec83103ef28a1830c69a87a3f6a071632436fed32eb25c64af2331
MD5 cabba90355d0df28cec0f88b787a3654
BLAKE2b-256 0f42b3ccb03c02e5375496ebb8d7b81771380855f0b89a96b2647f503d9852c1

See more details on using hashes here.

File details

Details for the file fitspy-2023.4-py3-none-any.whl.

File metadata

  • Download URL: fitspy-2023.4-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for fitspy-2023.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1c5c433d8f343ebfd77b27fcf3d5c73d06affc675b3c22ef37af1aa20e80c5e7
MD5 b6bcdf8127b645ab633c02e8db8c7a01
BLAKE2b-256 faa9f21ff4e52e40696531f360f67a85e8ec4bc34cfe774e114c6086c133608b

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