Skip to main content

ecdh - ElectroChemical Data Handling

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:

  • init initializes a toml file with the name ecdh.toml. Any supported datafiles in the local directory will be added to it.
  • run config.toml runs with the configuration set in config.toml

Example use:

ecdh
ecdh init
ecdh run config.toml

Features:

  • Galvanostatic Cycling
    • Plot Charge/Discharge curves over cycle life
      • Range, specific or all cycles can be plotted in addition to trimming of the first x cycles.
    • Plot Capacity retention over cycle life
    • Plot dQ/dV
    • Plot data from any number of input files
  • Cyclic Voltammetry

Supported Input filetypes:

  • Biologic (.mpt)
  • BatSmall (.txt)

Coming:

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

Dependencies

Standard Packages:

  • os
  • sys
  • datetime
  • math
  • inspect
  • shutil

Custom Packages:

  • Matplotlib
  • Numpy
  • Scipy
  • Pandas
  • toml

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

  • Enable specific cycles on a per-file basis
  • Add Withaker-despiker smoothing algorithm to dQ/dV data
  • Make dQ/dV and V/Q plot in the same figure if both are to be plotted
  • Fix Neware general report .csv reader

Program structure

Flowchart

SubModules

readers

Functions:

  • Read(): Takes a filepath and returns a dataframe with eventual metadata
    • Dataframe headers: ['mode', 'time/s', 'Ewe/V', '<I>/mA', 'cycle number']
  • Internal functions:
    • BioLogic: read_MPT()
    • Neware: read_xlsx(), read_csv()
    • Batsmall: read_txt()

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.

Metadata

Release files for ecdh 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ecdh 0.1.5
File Interpreter ABI Platform
ecdh-0.1.5-py3-none-any.whl Python 3 none any Details

Release files / ecdh-0.1.5-py3-none-any.whl

Download URL ecdh-0.1.5-py3-none-any.whl
Size 42.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6279ddb05bb5d6746b0dc50faa195ef41e4d71dab57c87e0566d133ce76e0a9d
BLAKE2b-256 checksum
How to use checksums
1bdc1db71033305798dfabe5030b6793003bb4d2f603521a234f0b489836763b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file

0.1.4

1 release file

0.1.3

2 release files

0.1.2

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page