fitpy

A Python package for fitting models to (spectroscopic) data.

https://github.com/tillbiskup/fitpy

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.9%) to scientific vocabulary

Keywords

electron-paramagnetic-resonance fitting reproducible-research reproducible-science simulation spectral-analysis spectroscopy
Last synced: 4 months ago · JSON representation ·

Repository

A Python package for fitting models to (spectroscopic) data.

Basic Info
  • Host: GitHub
  • Owner: tillbiskup
  • License: bsd-2-clause
  • Language: Python
  • Default Branch: master
  • Size: 367 KB
Statistics
  • Stars: 3
  • Watchers: 3
  • Forks: 1
  • Open Issues: 0
  • Releases: 3
Topics
electron-paramagnetic-resonance fitting reproducible-research reproducible-science simulation spectral-analysis spectroscopy
Created over 6 years ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation Roadmap

README.rst

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


.. warning::
  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.


Installation
------------

Install the package by running::

    pip install fitpy


Related projects
----------------

There is a number of related packages that are based on the ASpecD framework and each focus on one particular type of spectroscopy. The most mature packages available to date are:

* `ASpecD `_

  A Python framework for the analysis of spectroscopic data focussing on reproducibility and good scientific practice. The framework the cwepr package is based on, developed by T. Biskup.

* `trepr `_

  Package for processing and analysing time-resolved electron paramagnetic resonance (TREPR) data, developed by J. Popp and maintained by T. Biskup.

* `cwepr `_

  Package for processing and analysing continuous-wave electron paramagnetic resonance (cw-EPR) data, originally implemented by P. Kirchner, currently developed and maintained by M. Schröder and T. Biskup.

You may as well be interested in the `LabInform project `_ focussing on the necessary more global infrastructure in a laboratory/scientific workgroup interested in more `reproducible research `_. In short, LabInform is "The Open-Source Laboratory Information System".

Finally, don't forget to check out the website on `reproducible research `_ covering in more general terms aspects of reproducible research and good scientific practice.


License
-------

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

Owner

  • Login: tillbiskup
  • Kind: user
  • Location: Germany

Scientist focussing on reproducible research, particularly in spectroscopy

Citation (CITATION.cff)

cff-version: 1.2.0
message: If you use this software, please cite it using these metadata.
title: FitPy
abstract: >
    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.
authors:
  - family-names: Biskup
    given-names: Till
    orcid: "https://orcid.org/0000-0003-2913-0004"
type: software
license: BSD-2-Clause
repository-code: "https://github.com/tillbiskup/fitpy"
keywords:
  - "fitting"
  - "spectroscopy"
  - "data processing and analysis"
  - "reproducible science"
  - "reproducible research"
  - "good scientific practice"
  - "recipe-driven data analysis"
identifiers:
  - description: "The concept DOI of the work."
    type: doi
    value: 10.5281/zenodo.#######
references:
  - authors:
    - family-names: Biskup
      given-names: Till
      orcid: "https://orcid.org/0000-0003-2913-0004"
    doi: 10.5281/zenodo.4717937
    repository-code: "https://github.com/tillbiskup/aspecd"
    title: ASpecD
    type: software

GitHub Events

Total
  • Release event: 1
  • Watch event: 1
  • Push event: 2
  • Create event: 1
Last Year
  • Release event: 1
  • Watch event: 1
  • Push event: 2
  • Create event: 1

Committers

Last synced: almost 2 years ago

All Time
  • Total Commits: 51
  • Total Committers: 2
  • Avg Commits per committer: 25.5
  • Development Distribution Score (DDS): 0.039
Past Year
  • Commits: 11
  • Committers: 1
  • Avg Commits per committer: 11.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Till Biskup t****l@t****e 49
Till Biskup t****l@t****p 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 29 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 4
  • Total maintainers: 1
pypi.org: fitpy

Framework for fitting models to (spectroscopic) data.

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 29 Last month
Rankings
Dependent packages count: 7.3%
Dependent repos count: 22.1%
Forks count: 22.8%
Average: 24.6%
Stargazers count: 27.9%
Downloads: 43.2%
Maintainers (1)
Last synced: 4 months ago

Dependencies

setup.py pypi
  • aspecd >0.6.4
  • lmfit *
  • numpy *
  • scipy >=1.7.0