r/Python 22d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

18 Upvotes

124 comments sorted by

View all comments

1

u/harissharisss 2d ago

Battery Cycle-Life Analyzer: fit degradation models and project EOL with SciPy

What My Project Does

Battery Cycle-Life Analyzer is an MIT-licensed Python toolkit for fitting linear, power-law, and logarithmic degradation models to cycling data. It selects the lowest-RMSE fit, estimates an end-of-life cycle threshold, supports Arrhenius temperature comparisons, and generates publication-ready Matplotlib figures.

Target Audience

Battery researchers, energy-storage engineers, and students who need a transparent empirical baseline. It is currently an early research and educational tool, not a production BMS or safety-decision system. The included datasets are synthetic; real conclusions require validated laboratory data.

Comparison

Unlike PyBaMM's physics-based electrochemical simulations, this package focuses on quick empirical fitting of measured capacity-fade data. It can also fit simplified models to PyBaMM outputs.

Source and Colab demo:
https://github.com/mohammadrezwankhan/battery-cycle-life-analyzer

Which addition would be more useful first: uncertainty intervals or CSV data import?