Skip to content

Generated files

The report and plot functions write their files into the current working directory. A new file replaces an old file that has the same name. Before you start an analysis, create a folder for it and go to that folder:

from pathlib import Path
import os

results = Path("results/run-001")
results.mkdir(parents=True, exist_ok=True)
os.chdir(results)

Which function writes which file

Function Files written
EISFit_main.predict_Z EIS-SIM_<circuit>.txt
EISFit_main.plot_fit Nyquist and Bode figures (SVG). The file names are different for data only and for data with a fit
EISFit_main.full_EIS_report EIS_fit_report.txt, EIS_fit_data_<circuit>.txt, and the figures of plot_fit
EIS_Batchfit.Batch_fit Batch_EISfit_Report.txt and stack-bode_plot.svg. For each spectrum: EIS_fit_Data_<K>K.txt and <label>-Nyquist_plot.svg
EIS_Batchfit.Nyq_stack_plot Nyq_stackplot.svg
EIS_Batchfit.plot_arrhenius Arrhenius_plot.svg, Arrhenius_Analysis_Report.txt
EIS_Batchfit.C_eff Effective_Capacitance_Values.txt
singlechi.Single_chi_report Single-chi_Report.txt and one stacked Bode figure. For each spectrum: S-chi_fit_data_<Temp>C.txt and a Nyquist figure
singlechi.generate_plots Data_<K>K_S-chi_nyquist_plot.svg, <last-label>_S-chi_stack_bode_plot.svg

In the file names, <K> is the temperature in kelvin and <Temp> the temperature in degrees Celsius.

Format of the data files

The text files with simulated or fitted impedance start with comment lines. Then follow three columns:

frequency [Hz]    real impedance [ohm]    imaginary impedance [ohm]

The rows go from high frequency to low frequency. Each report function also returns its results as arrays. Thus a script does not have to read the files again.

Figures

The plot functions call matplotlib.pyplot.show(). In a script, this call can stop the run until you close the figure window. To prevent figure windows, select the Agg backend (see Installation).