pybop
A parameterisation and optimisation package for battery models.
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
4 of 16 committers (25.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.2%) to scientific vocabulary
Scientific Fields
Repository
A parameterisation and optimisation package for battery models.
Basic Info
- Host: GitHub
- Owner: pybop-team
- License: bsd-3-clause
- Language: Python
- Default Branch: develop
- Homepage: https://pybop-docs.readthedocs.io
- Size: 74 MB
Statistics
- Stars: 146
- Watchers: 5
- Forks: 41
- Open Issues: 77
- Releases: 13
Metadata Files
README.md
# Python Battery Optimisation and Parameterisation
[](https://github.com/pybop-team/PyBOP/actions/workflows/scheduled_tests.yaml)
[](https://github.com/pybop-team/PyBOP/graphs/contributors)
[](https://pypi.org/project/pybop/)
[](https://codecov.io/gh/pybop-team/PyBOP)
[](https://github.com/pybop-team/PyBOP/blob/develop/LICENSE)
[](https://colab.research.google.com/github/pybop-team/PyBOP/blob/develop/)
[](https://nbviewer.org/github/pybop-team/PyBOP/tree/develop/examples/notebooks/)
[](https://pybop-team.github.io/pybop-bench/)
[](https://github.com/pybop-team/PyBOP/releases)
[Main Branch Examples](https://github.com/pybop-team/PyBOP/tree/main/examples) [Develop Branch Examples](https://github.com/pybop-team/PyBOP/tree/develop/examples)
PyBOP provides a complete set of tools for parameterisation and optimisation of battery models, using both Bayesian and frequentist approaches, with example workflows to assist the user. PyBOP can be used to parameterise various battery models, including electrochemical and equivalent circuit models available in PyBaMM. PyBOP prioritises clear and informative diagnostics for the user, while also allowing for advanced probabilistic methods.
The diagram below shows the conceptual framework of PyBOP. This package is currently under development, so users can expect the API to evolve with future releases.
Installation
Within your virtual environment, install PyBOP:
bash
pip install pybop
To install the most recent state of PyBOP, install from the develop branch,
bash
pip install git+https://github.com/pybop-team/PyBOP.git@develop
To install a previous version of PyBOP, use the following template and replace the version number:
bash
pip install pybop==v24.3
To check that PyBOP is installed correctly, run one of the examples in the following section. For a development installation, see the Contribution Guide. More installation information is available in our documentation and the extended installation instructions for PyBaMM.
Using PyBOP
PyBOP has two intended uses:
Parameter inference from battery test data.
Design optimisation under battery manufacturing/use constraints.
These include a wide variety of optimisation problems that require careful consideration due to the choice of battery model, data availability and/or the choice of design parameters.
Jupyter Notebooks
Explore our example notebooks for hands-on demonstrations:
- Gravimetric design optimisation (SPMe)
- Non-linear constrained ECM parameter identification
- Optimiser comparison for parameter identification
- Parameter identification for spatial pouch cell model
- Estimating ECM parameters from HPPC pulse
Python Scripts
Find additional script-based examples in the examples directory:
- UKF parameter identification (SPM)
- BPX format parameter import/export
- Electrochemical Impendence Spectroscopy (EIS) parameter identification
- Maximum a Posteriori parameter identification (SPM)
- Gradient-based parameter identification (SPM)
Supported Methods
The table below lists the currently supported models, optimisers, and cost functions in PyBOP.
| Battery Models | Cost Functions | Optimization Algorithms | |-----------------------------------------------|------------------------------------|--------------------------------------------------------------------| | Single Particle Model (SPM) | Sum of Squared Error (SSE) | Covariance Matrix Adaptation Evolution Strategy (CMA-ES)
Code of Conduct
PyBOP aims to foster a broad consortium of developers and users, building on and learning from the success of the PyBaMM community. Our values are:
Inclusivity and fairness (those who wish to contribute may do so, and their input is appropriately recognised)
Interoperability (modularity for maximum impact and inclusivity)
User-friendliness (putting user requirements first via user-assistance & workflows)
License
PyBOP is released under the BSD 3-Clause License.
Contributors ✨
Thanks goes to these wonderful people:
This project follows the all-contributors specifications. Contributions of any kind are welcome! See CONTRIBUTING.md for ways to get started.
Owner
- Name: pybop-team
- Login: pybop-team
- Kind: organization
- Repositories: 1
- Profile: https://github.com/pybop-team
JOSS Publication
PyBOP: A Python package for battery model optimisation and parameterisation
Authors
Department of Engineering Science, University of Oxford, Oxford, United Kingdom, The Faraday Institution, Harwell Campus, Didcot, United Kingdom
Tags
python battery model parameter inference design optimisationCitation (CITATION.cff)
cff-version: 1.2.0
title: 'PyBOP: A Python package for battery model optimisation and parameterisation'
message: >-
If you use this software, please cite the article below.
authors:
- given-names: Brady
family-names: Planden
orcid: "https://orcid.org/0000-0002-1082-9125"
- given-names: Nicola
family-names: Courtier
orcid: "https://orcid.org/0000-0002-5714-1096"
- given-names: Martin
family-names: Robinson
orcid: "https://orcid.org/0000-0002-1572-6782"
- given-names: Agriya
family-names: Khetarpal
orcid: "https://orcid.org/0000-0002-1112-1786"
- given-names: Ferran
family-names: Brosa Planella
orcid: "https://orcid.org/0000-0001-6363-2812"
- given-names: David
family-names: Howey
orcid: "https://orcid.org/0000-0002-0620-3955"
keywords:
- "python"
- "battery models"
- "parameter inference"
- "optimization"
journal: "arXiv"
date-released: 2024-12-20
doi: 10.48550/arXiv.2412.15859
version: "25.6" # Update this alongside new releases
repository-code: 'https://www.github.com/pybop-team/pybop'
GitHub Events
Total
- Create event: 142
- Release event: 3
- Issues event: 98
- Watch event: 61
- Delete event: 143
- Issue comment event: 238
- Push event: 864
- Pull request event: 306
- Pull request review comment event: 220
- Pull request review event: 270
- Fork event: 14
Last Year
- Create event: 142
- Release event: 3
- Issues event: 98
- Watch event: 61
- Delete event: 143
- Issue comment event: 238
- Push event: 864
- Pull request event: 306
- Pull request review comment event: 220
- Pull request review event: 270
- Fork event: 14
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Brady Planden | b****n@g****m | 908 |
| NicolaCourtier | 4****r | 304 |
| pre-commit-ci[bot] | 6****] | 142 |
| Agriya Khetarpal | 7****l | 43 |
| allcontributors[bot] | 4****] | 42 |
| martinjrobins | m****s@g****m | 33 |
| Ferran Brosa Planella | F****a@w****k | 31 |
| Mark Blyth | b****7@g****m | 25 |
| Dibyendu-IITKGP | d****c@g****m | 23 |
| BLYTH Mark UNIVERSITE BRISTOL | M****3@i****r | 18 |
| Noël Hallemans | 9****s | 2 |
| Brady Planden | e****0@e****l | 2 |
| Grimm | f****m@i****k | 2 |
| David Howey | d****y@e****k | 1 |
| Pip Liggins | p****s@d****k | 1 |
| Valentin Pratz | 1****z | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 302
- Total pull requests: 781
- Average time to close issues: about 1 month
- Average time to close pull requests: 12 days
- Total issue authors: 28
- Total pull request authors: 16
- Average comments per issue: 0.53
- Average comments per pull request: 1.43
- Merged pull requests: 641
- Bot issues: 1
- Bot pull requests: 162
Past Year
- Issues: 94
- Pull requests: 380
- Average time to close issues: 13 days
- Average time to close pull requests: 8 days
- Issue authors: 17
- Pull request authors: 15
- Average comments per issue: 0.3
- Average comments per pull request: 1.04
- Merged pull requests: 296
- Bot issues: 1
- Bot pull requests: 79
Top Authors
Issue Authors
- BradyPlanden (195)
- NicolaCourtier (46)
- martinjrobins (9)
- Dibyendu-IITKGP (8)
- MarkBlyth (6)
- davidhowey (5)
- noelhallemans (4)
- Santiagopeacely (3)
- YannickNoelStephanKuhn (3)
- brosaplanella (2)
- L0tusC00kie (2)
- mleot (2)
- agriyakhetarpal (2)
- vpratz (1)
- pghege (1)
Pull Request Authors
- BradyPlanden (346)
- NicolaCourtier (179)
- pre-commit-ci[bot] (133)
- allcontributors[bot] (29)
- martinjrobins (23)
- agriyakhetarpal (16)
- Dibyendu-IITKGP (16)
- MarkBlyth (8)
- brosaplanella (8)
- noelhallemans (7)
- YannickNoelStephanKuhn (5)
- f-g-r-i-m-m (4)
- arjxn-py (2)
- pipliggins (2)
- herzphi (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 3
-
Total downloads:
- pypi 305 last-month
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 0
(may contain duplicates) - Total versions: 20
- Total maintainers: 1
proxy.golang.org: github.com/pybop-team/PyBOP
- Documentation: https://pkg.go.dev/github.com/pybop-team/PyBOP#section-documentation
- License: bsd-3-clause
-
Latest release: v24.9.1+incompatible
published over 1 year ago
Rankings
proxy.golang.org: github.com/pybop-team/pybop
- Documentation: https://pkg.go.dev/github.com/pybop-team/pybop#section-documentation
- License: bsd-3-clause
-
Latest release: v24.9.1+incompatible
published over 1 year ago
Rankings
pypi.org: pybop
Python Battery Optimisation and Parameterisation
- Homepage: https://github.com/pybop-team/PyBOP
- Documentation: https://pybop-docs.readthedocs.io
- License: BSD 3-Clause License Copyright (c) 2023, pybop-team Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
Latest release: 24.9.1
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v4 composite
- actions/setup-python v4 composite
- actions/checkout v4 composite
- actions/download-artifact v3 composite
- actions/setup-python v4 composite
- actions/upload-artifact v3 composite
- pypa/gh-action-pypi-publish release/v1 composite
- sigstore/gh-action-sigstore-python v1.2.3 composite
- numpy >=1.16
- pandas >=1.0
- pints >=0.5
- pybamm >=23.5
- scipy >=1.3
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/setup-python v5 composite
- actions/upload-artifact v4 composite
- actions/cache v4 composite
- actions/checkout v4 composite
- lycheeverse/lychee-action v1.10.0 composite
- actions/checkout v4 composite
- actions/setup-python v4 composite
- actions/checkout v4 composite
- actions/setup-python v4 composite
- codecov/codecov-action v4 composite

