Skip to content

Commit 710a8d1

Browse files
Merge pull request #2905 from pybamm-team/develop
Make release v23.4
2 parents 2c4bcea + 521c5f4 commit 710a8d1

File tree

181 files changed

+792
-513
lines changed

Some content is hidden

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

181 files changed

+792
-513
lines changed

.github/workflows/benchmark_on_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
HEAD_COMMIT=$(git rev-parse HEAD)
3939
echo $BASE_COMMIT | tee commits_to_compare.txt
4040
echo $HEAD_COMMIT | tee -a commits_to_compare.txt
41-
asv run HASHFILE:commits_to_compare.txt --m "GitHubRunner" --show-stderr -v
41+
asv run HASHFILE:commits_to_compare.txt --m "GitHubRunner" --show-stderr --strict -v
4242
- name: Compare commits' benchmark results
4343
run: |
4444
BASE_COMMIT=$(head -1 commits_to_compare.txt)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Remove needs-reply label
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
if: |
12+
github.event.comment.author_association != 'OWNER' &&
13+
github.event.comment.author_association != 'COLLABORATOR'
14+
steps:
15+
- name: Remove needs-reply label
16+
uses: octokit/[email protected]
17+
continue-on-error: true
18+
with:
19+
route: DELETE /repos/:repository/issues/:issue/labels/:label
20+
repository: ${{ github.repository }}
21+
issue: ${{ github.event.issue.number }}
22+
label: needs-reply
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/needs_reply.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Close old issues that need reply
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Close old issues that need reply
12+
uses: dwieeb/needs-reply@v2
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
issue-label: needs-reply

.github/workflows/periodic_benchmarks.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,22 @@ jobs:
2424
uses: actions/setup-python@v4
2525
with:
2626
python-version: 3.8
27-
- name: Install tox and asv
28-
run: pip install -U pip "tox<4" asv
27+
- name: Install Linux system dependencies
28+
run: |
29+
sudo apt-get update
30+
sudo apt install gfortran gcc libopenblas-dev
31+
- name: Install python dependencies
32+
run: |
33+
python -m pip install --upgrade pip wheel setuptools virtualenv asv wget cmake casadi numpy
34+
- name: Install SuiteSparse and Sundials
35+
run: python scripts/install_KLU_Sundials.py
2936
- name: Run benchmarks
3037
run: |
3138
asv machine --machine "GitHubRunner"
32-
asv run --machine "GitHubRunner" NEW
39+
asv run --machine "GitHubRunner" NEW --show-stderr --strict -v
40+
env:
41+
SUNDIALS_INST: $HOME/.local
42+
LD_LIBRARY_PATH: $HOME/.local/lib
3343
- name: Upload results as artifact
3444
uses: actions/upload-artifact@v2
3545
with:

.github/workflows/test_on_push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
fail-fast: false
4747
matrix:
4848
os: [ubuntu-latest, macos-latest, windows-latest]
49-
python-version: [3.8, 3.9]
49+
python-version: ["3.8", "3.9", "3.10", "3.11"]
5050

5151
steps:
5252
- uses: actions/checkout@v3
@@ -89,7 +89,7 @@ jobs:
8989
if: matrix.os == 'ubuntu-latest'
9090
run: tox -e pybamm-requires
9191

92-
- name: Run unit tests for GNU/Linux with Python 3.8
92+
- name: Run unit tests for GNU/Linux with Python 3.8, 3.10, and 3.11
9393
if: matrix.os == 'ubuntu-latest' && matrix.python-version != 3.9
9494
run: python -m tox -e unit
9595

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ ci:
44

55
repos:
66
- repo: https://github.com/psf/black
7-
rev: 23.1.0
7+
rev: 23.3.0
88
hooks:
99
- id: black
1010

1111
- repo: https://github.com/charliermarsh/ruff-pre-commit
12-
rev: "v0.0.259"
12+
rev: "v0.0.262"
1313
hooks:
1414
- id: ruff
1515
args: [--ignore=E741, --exclude=__init__.py]

CHANGELOG.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# [Unreleased](https://github.com/pybamm-team/PyBaMM/)
22

3+
# [v23.4](https://github.com/pybamm-team/PyBaMM/tree/v23.4) - 2023-04-30
4+
5+
# Features
6+
7+
- Added verbose logging to `pybamm.print_citations()` and citation tags for the `pybamm.Citations` class so that users can now see where the citations were registered when running simulations ([#2862](https://github.com/pybamm-team/PyBaMM/pull/2862))
8+
- PyBaMM is now natively supported on Apple silicon chips (`M1/M2`) ([#2435](https://github.com/pybamm-team/PyBaMM/pull/2435))
9+
- PyBaMM is now supported on Python `3.10` and `3.11` ([#2435](https://github.com/pybamm-team/PyBaMM/pull/2435))
10+
- Updated to casadi 3.6, which required some changes to the casadi integrator. ([#2859](https://github.com/pybamm-team/PyBaMM/pull/2859))
11+
12+
# Optimizations
13+
14+
- Fixed deprecated `interp2d` method by switching to `xarray.DataArray` as the backend for `ProcessedVariable` ([#2907](https://github.com/pybamm-team/PyBaMM/pull/2907))
15+
16+
## Bug fixes
17+
18+
- Parameter sets can now contain the key "chemistry", and will ignore its value (this previously would give errors in some cases) ([#2901](https://github.com/pybamm-team/PyBaMM/pull/2901))
19+
- Fixed a bug in the discretisation of initial conditions of a scaled variable ([#2856](https://github.com/pybamm-team/PyBaMM/pull/2856))
20+
- Fixed keyerror on "all" when getting sensitivities from IDAKLU solver([#2883](https://github.com/pybamm-team/PyBaMM/pull/2883))
21+
22+
# Breaking changes
23+
24+
- Made `Jupyter` a development only dependency. Now `Jupyter` would not be a required dependency for users while installing `PyBaMM`. ([#2846](https://github.com/pybamm-team/PyBaMM/pull/2846))
25+
326
# [v23.3](https://github.com/pybamm-team/PyBaMM/tree/v23.3) - 2023-03-31
427

528
## Features
@@ -14,12 +37,13 @@
1437

1538
## Bug fixes
1639

40+
- Fix non-deteministic outcome of some tests in the test suite ([#2844](https://github.com/pybamm-team/PyBaMM/pull/2844))
1741
- Fixed excessive RAM consumption when running multiple simulations ([#2823](https://github.com/pybamm-team/PyBaMM/pull/2823))
42+
- Fixed use of last_state as starting_solution in Simulation.solve() ([#2822](https://github.com/pybamm-team/PyBaMM/pull/2822))
1843
- Fixed a bug where variable bounds could not contain `InputParameters` ([#2795](https://github.com/pybamm-team/PyBaMM/pull/2795))
1944
- Improved `model.latexify()` to have a cleaner and more readable output ([#2764](https://github.com/pybamm-team/PyBaMM/pull/2764))
2045
- Fixed electrolyte conservation in the case of concentration-dependent transference number ([#2758](https://github.com/pybamm-team/PyBaMM/pull/2758))
2146
- Fixed `plot_voltage_components` so that the sum of overpotentials is now equal to the voltage ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
22-
- Fixed use of last_state as starting_solution in Simulation.solve() ([#2822](https://github.com/pybamm-team/PyBaMM/pull/2822))
2347

2448
## Optimizations
2549

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ keywords:
2424
- "expression tree"
2525
- "python"
2626
- "symbolic differentiation"
27-
version: "23.3"
27+
version: "23.4"
2828
repository-code: "https://github.com/pybamm-team/PyBaMM"
2929
title: "Python Battery Mathematical Modelling (PyBaMM)"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
229229
<tr>
230230
<td align="center" valign="top" width="14.28%"><a href="https://github.com/chuckliu1979"><img src="https://avatars.githubusercontent.com/u/13491954?v=4?s=100" width="100px;" alt="Chuck Liu"/><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>
231231
<td align="center" valign="top" width="14.28%"><a href="https://github.com/partben"><img src="https://avatars.githubusercontent.com/u/88316576?v=4?s=100" width="100px;" alt="partben"/><br /><sub><b>partben</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=partben" title="Documentation">📖</a></td>
232-
<td align="center" valign="top" width="14.28%"><a href="https://gavinw.me"><img src="https://avatars.githubusercontent.com/u/6828967?v=4?s=100" width="100px;" alt="Gavin Wiggins"/><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>
232+
<td align="center" valign="top" width="14.28%"><a href="https://wigging.me"><img src="https://avatars.githubusercontent.com/u/6828967?v=4?s=100" width="100px;" alt="Gavin Wiggins"/><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>
233233
<td align="center" valign="top" width="14.28%"><a href="https://github.com/dion-w"><img src="https://avatars.githubusercontent.com/u/91852142?v=4?s=100" width="100px;" alt="Dion Wilde"/><br /><sub><b>Dion Wilde</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/issues?q=author%3Adion-w" title="Bug reports">🐛</a> <a href="https://github.com/pybamm-team/PyBaMM/commits?author=dion-w" title="Code">💻</a></td>
234234
<td align="center" valign="top" width="14.28%"><a href="https://www.ehtec.co"><img src="https://avatars.githubusercontent.com/u/48386220?v=4?s=100" width="100px;" alt="Elias Hohl"/><br /><sub><b>Elias Hohl</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/commits?author=ehtec" title="Code">💻</a></td>
235235
<td align="center" valign="top" width="14.28%"><a href="https://github.com/KAschad"><img src="https://avatars.githubusercontent.com/u/93784399?v=4?s=100" width="100px;" alt="KAschad"/><br /><sub><b>KAschad</b></sub></a><br /><a href="https://github.com/pybamm-team/PyBaMM/issues?q=author%3AKAschad" title="Bug reports">🐛</a></td>

asv.conf.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
// "install_command": ["in-dir={env_dir} python -mpip install {wheel_file}"],
2525
// "uninstall_command": ["return-code=any python -mpip uninstall -y {project}"],
2626
"build_command": [
27+
"/bin/rm -rf pybind11",
2728
"/usr/bin/git clone --depth 1 --branch v2.6.2 https://github.com/pybind/pybind11.git",
2829
"python setup.py build",
2930
"PIP_NO_BUILD_ISOLATION=false python -mpip wheel --no-deps --no-index -w {build_cache_dir} {build_dir}"

0 commit comments

Comments
 (0)