Skip to main content

Library for fitting impedance data to equivalent circuit models.

Project description

DOI pre-commit.ci status

ImpedanceFitter

Impedance spectroscopy (IS) is a great tool to analyse the behaviour of an electrical circuit, to characterise the response of a sample (e.g. biological tissue), to determine the dielectric properties of a sample, and much more1.

In IS, often (complex) non-linear least squares is used for parameter estimation of equivalent circuit models. ImpedanceFitter is a software that facilitates parameter estimation for arbitrary equivalent circuit models. The equivalent circuit may comprise different standard elements or other models that have been formulated in the context of impedance spectroscopy. The unknown parameters are found by fitting the model to experimental impedance data. The underlying fitting software is LMFIT2, which offers an interface to different optimization and curve-fitting methods going beyond standard least-squares.

ImpedanceFitter allows one to build a custom equivalent circuit, fit an arbitrary amount of data sets and perform statistical analysis of the results using OpenTurns3.

Documentation

The documentation is available at Read the Docs.

If you want to compile it locally: The documentation is in the doc directory and requires Sphinx to be compiled. A requirements file can be found in the doc directory.

Installation

ImpedanceFitter works with Python >= 3.6.

ImpedanceFitter can be installed using pip

pip install impedancefitter

If you want to install the code from source, clone into a local directory.

cd into this directory and run

pip install -e . --user

in this directory. It will install all requirements automatically. Moreover, you can edit the source code and run the edited version without reinstalling.

Testing

The tests use pytest. Simply run pytest inside the repository main directory.

Use ImpedanceFitter

Check out the examples directory and the documentation to see how ImpedanceFitter is supposed to work.

Contribute

If you find bugs or missing functionality, feel free to raise an issue here on github or create a pull request!

References

1: Barsoukov, E., & Macdonald, J. R. (Eds.). (2018). Impedance Spectroscopy: Theory, Experiment, and Applications. (3rd ed.). Hoboken, NJ: John Wiley & Sons, Inc. https://doi.org/10.1002/9781119381860

2: Newville, M., & et al. (2020, May 7). lmfit/lmfit-py 1.0.1 (Version 1.0.1). Zenodo. http://doi.org/10.5281/zenodo.3814709

3: Baudin, M., Dutfoy, A., Looss, B., & Popelin, A. L. (2017). OpenTURNS: An industrial software for uncertainty quantification in simulation. In Handbook of Uncertainty Quantification (pp. 2001–2038). https://doi.org/10.1007/978-3-319-12385-1_64

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

impedancefitter-2.0.12.tar.gz (4.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

impedancefitter-2.0.12-py3-none-any.whl (116.8 kB view details)

Uploaded Python 3

File details

Details for the file impedancefitter-2.0.12.tar.gz.

File metadata

  • Download URL: impedancefitter-2.0.12.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for impedancefitter-2.0.12.tar.gz
Algorithm Hash digest
SHA256 9fb9953e47f720460f30bd760d11b93eec064f9c2e88cdf8c6cc2b14c7b49a53
MD5 436da2e259b62fa9b8ebadce2a65409d
BLAKE2b-256 23c0e4131312b991985df29e5683c73bad10b77bc3a9343e369ff5c7d566cb7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for impedancefitter-2.0.12.tar.gz:

Publisher: ci.yml on j-zimmermann/ImpedanceFitter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file impedancefitter-2.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for impedancefitter-2.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 e2d0bb64e643e2e19c922f213fd04ec88b2462946bddedd16cff3e76ecddb4a2
MD5 876c7e201894cb62d61deb4fbf576823
BLAKE2b-256 2a402f091f730501400e079ccaf66b1cca2899d09649ae3cd5d562c5f1191670

See more details on using hashes here.

Provenance

The following attestation bundles were made for impedancefitter-2.0.12-py3-none-any.whl:

Publisher: ci.yml on j-zimmermann/ImpedanceFitter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page