/PyEIS

Functions for computing and fitting experimental data from electrochemical impedance spectroscopy.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

PyEIS

Generate symbolic and lambda functions from the string representation of an electronic circuit in order to compute EIS data.

The module aims to make the computation of EIS data or fitting of experimental data easier and faster by abstracting the procedure of computing the analytic (complex) expressions of the immittance (Z(w) or Y(w)) and turning them into lambda functions. The module contains also a fully operational procedure for fitting experimental data based on the least square method.

Sympy allows to generate the symbolic expressions and turns them into lambda functions. The fitting procedure uses extensively Numpy+Scipy. Plots are generated with matplotlib and console outputs of the results are put together with PrettyTables.

The documentation is 80% completed and the code is still under active development. However, great care is taken in avoiding backward incompatibilities. The module is implemented using a procedural programming style.

How to install

Download the zip or tarball file and extract it locally. Install the package by using the setup.py file. It works with Python 2 and 3.

python setup.py install
Numpy, Scipy, Sympy, Matplotlib and PrettyTable are required dependencies:
  • Numpy >=1.8
  • Scipy >=0.14
  • Sympy >=0.7.5
  • Matplotlib >=1.2
  • PrettyTables >=0.7.2

License information

See the file LICENSE for information on the history of this software, terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES.