Skip to main content

A python package to extract Tafel slope

Project description

Python application codecov

Tafel

A command-line tool for extracting Tafel slopes from MPT files.

This tool is currently in an experimental stage.

Supported files

  • xy files: assumes simple xy format. See here for an example.
  • csv files: assumes LSV experiments conducted using Hokuto. See here for an example.
  • mpt files: assumes LSV experiments conducted using BioLogic EC-Lab. See here for an example.

Installation

Requirements: Python 3.11 or above

pip install tafel

How to use

Simple xy files

tafel -f dataset/HER.csv

Bio-logic files

tafel -f path/to/file/file.mpt --reference-potential 0.210 --ph 13 --electrolyte-resistance 0.05

Hokuto files

tafel -f path/to/file/file.xyz --reference-potential 0.210 --ph 13 --electrolyte-resistance 0.05

For Developers

Getting Started

To set up the development environment, run:

pdm install

Code Quality Check

To check the code quality, run:

pdm run check

To test CLI, run

pdm run python src/tafel/app/cli.py -f dataset/HER.csv

Release a New PyPI Package

To release a new version, update the pyproject.toml file with the new version number and publish a new release from here.

Project details


Download files

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

Source Distribution

tafel-2025.5.6.tar.gz (99.3 kB view details)

Uploaded Source

Built Distribution

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

tafel-2025.5.6-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file tafel-2025.5.6.tar.gz.

File metadata

  • Download URL: tafel-2025.5.6.tar.gz
  • Upload date:
  • Size: 99.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.24.1 CPython/3.13.3 Linux/6.11.0-1012-azure

File hashes

Hashes for tafel-2025.5.6.tar.gz
Algorithm Hash digest
SHA256 fc938e5cede96efccb5fcf4863f3fb938b4a68f272dc61988be03389e8579f94
MD5 edbc918607bf26cb6dd1171f7b6ece3e
BLAKE2b-256 806c0c62dda5e739433620f0100d5c3ad04a6a91748b32dfb2896e7b9720e47c

See more details on using hashes here.

File details

Details for the file tafel-2025.5.6-py3-none-any.whl.

File metadata

  • Download URL: tafel-2025.5.6-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.24.1 CPython/3.13.3 Linux/6.11.0-1012-azure

File hashes

Hashes for tafel-2025.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f73a4d99111c9b74835d9b76df1af7bf37fa9221d56a1ba4d8fa6864407b990b
MD5 30cecc6bf1f6cc1780df852684f8d722
BLAKE2b-256 753d40812a622a25e7677d3c610b1d85f6ba98710eca8c43a4b25f3fc6d26d4e

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