Skip to content

EISFitpython documentation

EISFitpython fits equivalent circuits to electrochemical impedance spectroscopy (EIS) data. You write the circuit as a text string, for example (R1|Q1)+(R2|Q2)+Q3. The package can fit this circuit in three ways:

  • to one spectrum,
  • to a batch of spectra, one after the other,
  • to a full temperature series in one fit.

Where to start

  1. Install the package.
  2. Read how to write a circuit string and how to give its parameters in the correct order.
  3. Fit one spectrum.
  4. Fit a temperature series, either one spectrum after another or all spectra together with shared and individual parameters.

The theoretical background gives the equations behind the fit. The API reference lists every function with its arguments and return values. Generated files lists what each function writes to disk.

How the modules fit together

The package has five modules. Two of them prepare the input: data_extraction reads the measured data and circuit_main calculates the impedance of a circuit. EISFit_main fits one spectrum. EIS_Batchfit and singlechi use these three modules to analyze a series of spectra.

flowchart LR
    accTitle: EISFitpython module relationships
    accDescr: Data extraction and circuit evaluation feed the core fitting module. Batch fitting and global-local fitting build on all three.

    data_extraction["data_extraction<br/>read, trim, split"]
    circuit_main["circuit_main<br/>evaluate circuits"]
    eisfit_main["EISFit_main<br/>fit, report, plot"]
    batchfit["EIS_Batchfit<br/>batch and Arrhenius"]
    singlechi["singlechi<br/>global-local fitting"]

    data_extraction --> eisfit_main
    circuit_main --> eisfit_main
    data_extraction --> batchfit
    circuit_main --> batchfit
    eisfit_main --> batchfit
    data_extraction --> singlechi
    circuit_main --> singlechi
    eisfit_main --> singlechi

Imports

Functions live in their modules, so import the modules you need. The guides use these short names:

import EISFitpython
from EISFitpython import circuit_main as circuits
from EISFitpython import data_extraction as data
from EISFitpython import EISFit_main as fit
from EISFitpython import EIS_Batchfit as batch
from EISFitpython import singlechi

print(EISFitpython.__version__)