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¶
- Install the package.
- Read how to write a circuit string and how to give its parameters in the correct order.
- Fit one spectrum.
- 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: