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

Uploaded Source

Built Distribution

fitspy-2023.5-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fitspy-2023.5.tar.gz
Algorithm Hash digest
SHA256 187e3f9cf6789d2336841e83cb3e082962cb6551097cf71a0198804a9514f61d
MD5 6e10298cec7c1ef2ed3a2f9db06781fe
BLAKE2b-256 deb4dd69080776f707b399b5fa596614b9f6cdcb7b833e009dc873db4024fa32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fitspy-2023.5-py3-none-any.whl
  • Upload date:
  • Size: 47.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6783783c339f606732b47cc80c441bf9f75fa81055256c1c80d166789ad7c8ea
MD5 e03114d460a604ae07bf95365cf06e7b
BLAKE2b-256 4789ebfd2cd2cd366d7c5a032e218a45d08ddbe2cfc91145c1d65dfc65788104

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