Skip to content

Commit 43833c7

Browse files
Merge branch 'develop' into main-fix-merge
2 parents b42cbe9 + 32a6a3e commit 43833c7

File tree

272 files changed

+6192
-8483
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+6192
-8483
lines changed

.all-contributorsrc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@
293293
"contributions": [
294294
"test",
295295
"code",
296-
"bug"
296+
"bug",
297+
"review",
298+
"maintenance"
297299
]
298300
},
299301
{
@@ -406,6 +408,16 @@
406408
"contributions": [
407409
"doc"
408410
]
411+
},
412+
{
413+
"login": "wigging",
414+
"name": "Gavin Wiggins",
415+
"avatar_url": "https://avatars.githubusercontent.com/u/6828967?v=4",
416+
"profile": "https://gavinw.me",
417+
"contributions": [
418+
"bug",
419+
"code"
420+
]
409421
}
410422
],
411423
"contributorsPerLine": 7,

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ about: Create a report to help us improve
44

55
---
66

7+
- PyBaMM version - `$ python -m pip show pybamm`:
8+
- Python version - `$ python --version`:
9+
710
**Describe the bug**
811
A clear and concise description of what the bug is.
912

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Update vcpkg-configuration baseline
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
paths:
8+
- vcpkg-configuration.json
9+
schedule:
10+
# Run at 3 am UTC on 20th every month
11+
- cron: 0 3 20 * *
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
python-version: [3.8]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install dependencies
27+
run: |
28+
pip install wheel
29+
pip install --editable .
30+
- name: Update baseline
31+
run: python scripts/update_vcpkg_baseline.py
32+
- name: Create Pull Request
33+
uses: peter-evans/create-pull-request@v3
34+
with:
35+
delete-branch: true
36+
branch-suffix: short-commit-hash
37+
commit-message: update baseline
38+
title: Update vcpkg-configuration.json baseline
39+
body: |
40+
Update baseline of vcpkg-configuration.json with the latest commit id
41+
42+
Auto-generated pull request

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# [Unreleased](https://github.com/pybamm-team/PyBaMM)
2+
3+
## Features
4+
5+
- Added `plot_summary_variables` to plot and compare summary variables ([#1678](https://github.com/pybamm-team/PyBaMM/pull/1678))
6+
- The DFN model can now be used directly (instead of `BasicDFNHalfCell`) to simulate a half-cell ([#1600](https://github.com/pybamm-team/PyBaMM/pull/1600))
7+
8+
## Breaking changes
9+
10+
- The substring 'negative electrode' has been removed from variables related to SEI and lithium plating (e.g. 'Total negative electrode SEI thickness [m]' replaced by 'Total SEI thickness [m]') ([#1654](https://github.com/pybamm-team/PyBaMM/pull/1654))
11+
112
# [v21.08](https://github.com/pybamm-team/PyBaMM/tree/v21.08) - 2021-08-26
213

314
This release introduces:
@@ -57,6 +68,7 @@ example notebook ([#1602](https://github.com/pybamm-team/PyBaMM/pull/1602))
5768
- Made parameters importable through pybamm ([#1475](https://github.com/pybamm-team/PyBaMM/pull/1475))
5869

5970
## Breaking changes
71+
6072
- Refactored the `particle` submodel module, with the models having no size distribution now found in `particle.no_distribution`, and those with a size distribution in `particle.size_distribution`. Renamed submodels to indicate the transport model (Fickian diffusion, polynomial profile) and if they are "x-averaged". E.g., `FickianManyParticles` and `FickianSingleParticle` are now `no_distribution.FickianDiffusion` and `no_distribution.XAveragedFickianDiffusion` ([#1602](https://github.com/pybamm-team/PyBaMM/pull/1602))
6173
- Changed sensitivity API. Removed `ProcessedSymbolicVariable`, all sensitivity now handled within the solvers and `ProcessedVariable` () ([#1552](https://github.com/pybamm-team/PyBaMM/pull/1552))
6274
- The `Yang2017` parameter set has been removed as the complete parameter set is not publicly available in the literature ([#1577](https://github.com/pybamm-team/PyBaMM/pull/1577))

FindSuiteSparse.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ find_library(SUITESPARSE_CONFIG_LIB
6464
PATH_SUFFIXES "lib" "lib32" "lib64" "Lib"
6565
NO_DEFAULT_PATH
6666
)
67-
# now also include the deafult paths
67+
# now also include the default paths
6868
find_library(SUITESPARSE_CONFIG_LIB
6969
NAMES "suitesparseconfig"
7070
PATH_SUFFIXES "lib" "lib32" "lib64" "Lib"
@@ -93,7 +93,7 @@ foreach(_component ${SUITESPARSE_COMPONENTS})
9393
PATH_SUFFIXES "lib" "lib32" "lib64" "${_component}" "${_component}/Lib"
9494
NO_DEFAULT_PATH
9595
)
96-
#now also include the deafult paths
96+
#now also include the default paths
9797
find_library(${_component}_LIBRARY
9898
NAMES "${_componentLower}"
9999
PATH_SUFFIXES "lib" "lib32" "lib64" "${_component}" "${_component}/Lib"

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[![release](https://img.shields.io/github/v/release/pybamm-team/PyBaMM?color=yellow)](https://github.com/pybamm-team/PyBaMM/releases)
1212
[![black code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
1313
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
14-
[![All Contributors](https://img.shields.io/badge/all_contributors-35-orange.svg)](#-contributors)
14+
[![All Contributors](https://img.shields.io/badge/all_contributors-36-orange.svg)](#-contributors)
1515
<!-- ALL-CONTRIBUTORS-BADGE:END -->
1616

1717
</div>
@@ -69,12 +69,19 @@ We strongly recommend to install PyBaMM within a python virtual environment, in
6969
For instructions on how to create a virtual environment for PyBaMM, see [the documentation](https://pybamm.readthedocs.io/en/latest/install/GNU-linux.html#user-install).
7070

7171
### Using pip
72+
[![pypi](https://img.shields.io/pypi/v/pybamm?color=blue)](https://pypi.org/project/pybamm/)
73+
[![downloads](https://img.shields.io/pypi/dm/pybamm?color=blue)](https://pypi.org/project/pybamm/)
74+
7275
```bash
7376
pip install pybamm
7477
```
7578

7679
### Using conda
7780
PyBaMM is available as a conda package through the conda-forge channel.
81+
82+
[![conda_forge](https://img.shields.io/conda/vn/conda-forge/pybamm?color=green)](https://anaconda.org/conda-forge/pybamm)
83+
[![downloads](https://img.shields.io/conda/dn/conda-forge/pybamm?color=green)](https://anaconda.org/conda-forge/pybamm)
84+
7885
```bash
7986
conda install -c conda-forge pybamm
8087
```
@@ -163,7 +170,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
163170
<tr>
164171
<td align="center"><a href="https://github.com/weilongai"><img src="https://avatars1.githubusercontent.com/u/41424174?v=4?s=100" width="100px;" alt=""/><br /><sub><b>WEILONG AI</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=weilongai" title="Code">💻</a> <a href="#example-weilongai" title="Examples">💡</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=weilongai" title="Tests">⚠️</a></td>
165172
<td align="center"><a href="https://github.com/lonnbornj"><img src="https://avatars2.githubusercontent.com/u/35983543?v=4?s=100" width="100px;" alt=""/><br /><sub><b>lonnbornj</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=lonnbornj" title="Code">💻</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=lonnbornj" title="Tests">⚠️</a> <a href="#example-lonnbornj" title="Examples">💡</a></td>
166-
<td align="center"><a href="https://github.com/priyanshuone6"><img src="https://avatars.githubusercontent.com/u/64051212?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Priyanshu Agarwal</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=priyanshuone6" title="Tests">⚠️</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=priyanshuone6" title="Code">💻</a> <a href="https://github.com/pybamm-team/PyBaMM/issues?q=author%3Apriyanshuone6" title="Bug reports">🐛</a></td>
173+
<td align="center"><a href="https://github.com/priyanshuone6"><img src="https://avatars.githubusercontent.com/u/64051212?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Priyanshu Agarwal</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=priyanshuone6" title="Tests">⚠️</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=priyanshuone6" title="Code">💻</a> <a href="https://github.com/pybamm-team/PyBaMM/issues?q=author%3Apriyanshuone6" title="Bug reports">🐛</a> <a href="https://github.com/pybamm-team/PyBaMM/pulls?q=is%3Apr+reviewed-by%3Apriyanshuone6" title="Reviewed Pull Requests">👀</a> <a href="#maintenance-priyanshuone6" title="Maintenance">🚧</a></td>
167174
<td align="center"><a href="https://github.com/DrSOKane"><img src="https://avatars.githubusercontent.com/u/42972513?v=4?s=100" width="100px;" alt=""/><br /><sub><b>DrSOKane</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=DrSOKane" title="Code">💻</a> <a href="#example-DrSOKane" title="Examples">💡</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=DrSOKane" title="Documentation">📖</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=DrSOKane" title="Tests">⚠️</a></td>
168175
<td align="center"><a href="https://github.com/Saransh-cpp"><img src="https://avatars.githubusercontent.com/u/74055102?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Saransh Chopra</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=Saransh-cpp" title="Code">💻</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=Saransh-cpp" title="Tests">⚠️</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=Saransh-cpp" title="Documentation">📖</a></td>
169176
<td align="center"><a href="https://github.com/DavidMStraub"><img src="https://avatars.githubusercontent.com/u/10965193?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David Straub</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/issues?q=author%3ADavidMStraub" title="Bug reports">🐛</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=DavidMStraub" title="Code">💻</a></td>
@@ -178,6 +185,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
178185
<td align="center"><a href="https://github.com/chuckliu1979"><img src="https://avatars.githubusercontent.com/u/13491954?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Chuck Liu</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/issues?q=author%3Achuckliu1979" title="Bug reports">🐛</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=chuckliu1979" title="Code">💻</a></td>
179186
<td align="center"><a href="https://github.com/partben"><img src="https://avatars.githubusercontent.com/u/88316576?v=4?s=100" width="100px;" alt=""/><br /><sub><b>partben</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=partben" title="Documentation">📖</a></td>
180187
</tr>
188+
<tr>
189+
<td align="center"><a href="https://gavinw.me"><img src="https://avatars.githubusercontent.com/u/6828967?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Gavin Wiggins</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/issues?q=author%3Awigging" title="Bug reports">🐛</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=wigging" title="Code">💻</a></td>
190+
</tr>
181191
</table>
182192

183193
<!-- markdownlint-restore -->
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Electrode SOH models
2+
====================
3+
4+
.. autoclass:: pybamm.lithium_ion.ElectrodeSOH
5+
:members:
6+
7+
.. autoclass:: pybamm.lithium_ion.ElectrodeSOHHalfCell
8+
:members:
9+
10+
.. autofunction:: pybamm.lithium_ion.get_initial_stoichiometries

docs/source/models/lithium_ion/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ Lithium-ion Models
1010
dfn
1111
newman_tobias
1212
yang2017
13+
electrode_soh

docs/source/models/submodels/electrode/ohm/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ Ohmic
88
composite_ohm
99
full_ohm
1010
surface_form_ohm
11+
li_metal_explicit
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Explicit potential drop for lithium metal
2+
=========================================
3+
4+
.. autoclass:: pybamm.electrode.ohm.LithiumMetalExplicit
5+
:members:

0 commit comments

Comments
 (0)