Home

Awesome

<!-- [![Build Status](https://travis-ci.org/ECSHackWeek/impedance.py.svg?branch=master)](https://travis-ci.org/ECSHackWeek/impedance.py) [![Coverage Status](https://coveralls.io/repos/github/ECSHackWeek/impedance.py/badge.svg?branch=master)](https://coveralls.io/github/ECSHackWeek/impedance.py?branch=master) [![Documentation Status](https://readthedocs.org/projects/impedancepy/badge/?version=latest)](https://impedancepy.readthedocs.io/en/latest/?badge=latest) -->

Ampere - Advanced Model Package for ElectRochemical Experiments

Ampere is a Python module for working with battery models.

Using a scikit-learn-like API, we hope to make visualizing, fitting, and analyzing impedance spectra more intuitive and reproducible.

<i>Ampere is currently in the alpha phase and new features are rapidly being added.</i> If you have a feature request or find a bug, please feel free to file an issue or, better yet, make the code improvements and submit a pull request! The goal is to build an open-source tool that the entire electrochemical community can use and improve

Ampere currently provides:

Installation

Dependencies

Ampere requires:

Several example notebooks are provided in the examples/ directory. Opening these will require Jupyter notebook or Jupyter lab.

User Installation

The easiest way to install Ampere is using pip:

pip install ampere

However, it depends on Cython and Microsoft c++ libraries in order to install (on windows). Those should be added as follows:

pip install --upgrade cython setuptools

follow these instructions to install the proper c++ libraries using Microsoft tools.

That may or may not work, depending upon your system. An alternative method of installation that works is:

git clone https://github.com/nealde/ampere

I've recently added the Cython-generated c files back to the repo, so it may be as simple as:

cd ampere python setup.py install

However, if that doesn't work, the following will rebuild the files:

cd ampere/models/P2D

python setup.py build_ext --inplace

cd ../SPM

python setup.py build_ext --inplace

This will build the local C code that is needed by the main compiler. Then, you can cd back up to the main folder and

python setup.py install

That will typically work. I'm still working on getting pip installation working, and it will likely require some package modifications, following SKLearn as a guide.

Examples and Documentation

Examples and documentation will be provided after my Defense, which is set for the end of May.

On the Horizon