Skip to main content

ampworks

ci   license   codecov   pypi   pypi-downloads

Summary

ampworks is a collection of tools designed to visualize and process experimental battery data. It provides routines for degradation mode analysis, parameter extraction from common protocols (e.g., GITT, ICI, etc.), and more. These routines provide key properties for life and physics-based models (e.g., SPM and P2D). Graphical user interfaces (GUIs) are available for some of the analyses. See a full list of the GUI-based applications by running ampworks -h in your terminal after installation.

Note: ampworks is in early development. The API may change as it matures.

Installation

ampworks can be installed from PyPI using the following command:

pip install ampworks[gui]

Using [gui] is optional. When included, the installation includes extra dependencies needed for the GUI-based applications. However, the GUIs are completely optional. Any routines that can accessed through a GUI can also be implemented in scripts or notebooks. The package will generally install faster without the extra dependencies. Note that you can always add the GUI dependencies at a later time too; they do not need to be included with the original installation of ampworks.

For those interested in setting up a developer and/or editable version of this software please see the directions available in the "Development" section of our documentation.

Get Started

The best way to get started is by exploring the online documentation and the repository's examples folder. The software includes a datasets module with practice/example datasets that can be used to learn and test various routines.

Current examples are limited in the documentation and are mostly present in docstrings. Even the repository's examples folder currently has a limited amount of examples. However, if you are interested in seeing an example or any specific functionality, please feel free to submit an issue and request one be added to the documentation. When present, user requests for specific examples will be prioritized over developer-chosen examples.

Notes:

  • If you are new to Python, check out Spyder IDE. Spyder is a powerful interactive development environment (IDE) that can make programming in Python more approachable to new users.
  • Another friendly option for getting started in Python is to use Jupyter Notebooks. We write our examples in Jupyter Notebooks since they support both markdown blocks for explanations and executable code blocks.
  • Python, Spyder, and Jupyter Notebooks can be setup using Anaconda. Anaconda provides a convenient way for new users to get started with Python due to its friendly graphical installer and environment manager.

Citing this Work

This work was authored by researchers at the National Laboratory of the Rockies (NLR). If you use use this package in your work, please include the following citation:

Randall, Corey R. "ampworks: Battery data analysis tools in Python [SWR-25-39]." Computer software, Mar. 2025. url: github.com/NatLabRockies/ampworks. doi: 10.11578/dc.20250313.2.

For convenience, we also provide the following for your BibTex:

@misc{randall2025ampworks,
  author = {Randall, Corey R.},
  title = {{ampworks: Battery data analysis tools in Python [SWR-25-39]}},
  url = {github.com/NatLabRockies/ampworks},
  month = {Mar.},
  year = {2025},
  doi = {10.11578/dc.20250313.2},
}

Contributing

If you'd like to contribute to this package, please look through the existing issues. If the bug you've caught or the feature you'd like to add isn't already being worked on, please submit a new issue before getting started. You should also read through the developer guidelines.

Disclaimer

This work was authored by the National Laboratory of the Rockies (NLR), operated by Alliance for Energy Innovation, LLC, for the U.S. Department of Energy (DOE). The views expressed in the repository do not necessarily represent the views of the DOE or the U.S. Government.

Metadata

Release files for ampworks 0.1.0

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

Source distribution (sdist)

Source distribution for ampworks 0.1.0
File Size Uploaded
ampworks-0.1.0.tar.gz 12.6 MB Details

Built distribution (wheel)

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

Total release size: 25.8 MB

Release files / ampworks-0.1.0.tar.gz

Download URL ampworks-0.1.0.tar.gz
Size 12.6 MB
Tags Source
SHA-256 checksum
How to use checksums
2c0fad5b09d3bd1f98df7330556db82ca2abe7ff855907dd673a63034ac9413b
BLAKE2b-256 checksum
How to use checksums
0e15f2d9769e1c59e683463e71cb0671fce51f1d2bbbdd510d81700d6e4a9779
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / ampworks-0.1.0-py3-none-any.whl

Download URL ampworks-0.1.0-py3-none-any.whl
Size 13.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c3b4dd8b45ad3622fa16ec056b24204d89038e83ab8ca3c9e7f63d626f83d37f
BLAKE2b-256 checksum
How to use checksums
d4f705df6488d17f4eb0e49fabf80929b6b8057ca8476206920b222b99b7dcf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.1

2 release files

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