Skip to main content

FitPy

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.

Metadata

Release files for fitpy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fitpy 0.1.2
File Size Uploaded Provenance Actions
fitpy-0.1.2.tar.gz 22.7 kB Without provenance Details for fitpy-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fitpy 0.1.2
File Interpreter ABI Platform Actions
fitpy-0.1.2-py3-none-any.whl Python 3 none any Details for fitpy-0.1.2-py3-none-any.whl

Total release size: 41.5 kB

Release files / fitpy-0.1.2.tar.gz

Download URL fitpy-0.1.2.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
56db84a40d806f67006217515d7ec9b6721748840aa178d655160f9b5232cc8f
BLAKE2b-256 checksum
How to use checksums
e5665f794ee48a3ea7699259fe5a6ef58215e7181ff68bd4fd11c6b027ada4c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.2

Release files / fitpy-0.1.2-py3-none-any.whl

Download URL fitpy-0.1.2-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6460449e95b56c680d2ba6e41cc38ea04897e305a9e98306d02b4dd3cdd4d45d
BLAKE2b-256 checksum
How to use checksums
84f0fb7496dbfe1b6dd7f4b57f23330fd995fcdd225839c0ba335bc365d81e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.2

Security for fitpy 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page