Skip to main content

ElectroChemical Data Handler

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecdh-0.1.5-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file ecdh-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: ecdh-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for ecdh-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6279ddb05bb5d6746b0dc50faa195ef41e4d71dab57c87e0566d133ce76e0a9d
MD5 ba4343c29e8bc797d164582bfaefd146
BLAKE2b-256 1bdc1db71033305798dfabe5030b6793003bb4d2f603521a234f0b489836763b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page