amundmr / ecdh

ElectroChemical Data Handling
GNU General Public License v3.0
4 stars 1 forks source link
battery cell cycling electrochemistry matplotlib plotting python

[OBSOLETE] ecdh - ElectroChemical Data Handling

THIS PACKAGE HAS BEEN OBSOLETED IN FAVOUR OF SciBatt

edch provides easy solutions for simple handling of electrochemical data. Most emphasis is so far put on how to display the data using matplotlib.

Installation

ecdh is hosted on pypi, and can be installed via pip by: pip install ecdh

Usage:

run ecdh.

Command line arguments:

Example use:

ecdh
ecdh init
ecdh run config.toml

Features:

Supported Input filetypes:

Coming:

- Neware backup files (.xlsx)
- Neware export as general report (.csv)

Dependencies

Standard Packages:

Custom Packages:

Examples

I have three datafiles from different equipment, but since they are all in the same folder, I can initiate a config file with the init command, and run it afterwords with run ecdh.toml.

The terminal looks like:

$ ecdh init
[INFO] Wrote example configuration to 'ecdh.toml' with 3
files found
$ ecdh run ecdh.toml 
[INFO] Reading file: 'Neware_commasep.csv'
[INFO] Reading file: 'Biologic-text.mpt'
[INFO] Active mass found in file to be: 1e-06g
[INFO] Datafile ended with a Discharge
[INFO] Reading file: 'batsmall_data.dat'

Which yields the following output:

If I now enter the ecdh.toml file and set dqdvplot = true, qcplot = false and remove the entry of the ugly files, The output is:

TODO list

Program structure

Flowchart

SubModules

readers

Functions:

cell

Contains the Cell class with functions:

  • get_data(): Runs readers.read(filename)
  • edit_data(): Runs any of the internal functions according to the cfg.toml and what experiment type the file is.
  • Internal functions:
    • _edit_cyclelife(): Edits data for easy cyclelife plotting
    • _edit_CV(): Edits data for easy cyclic voltammetry plotting
    • _edit_GC(): Edits data for easy galvanostatic cycling plotting
    • _edit_dQdV(): Edits data for easy dQdV plotting

plot

Contains the Plot class with functions:

  • plot(): Takes list of cell objects as input parameter, reads the cfg.toml and plots it all according to that.