Skip to content

Commit 8627b5d

Browse files
authored
Merge branch 'develop' into latexify_eqcm
2 parents 354820c + 34186fe commit 8627b5d

File tree

66 files changed

+1854
-1917
lines changed

Some content is hidden

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

66 files changed

+1854
-1917
lines changed

.github/workflows/benchmark_on_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
persist-credentials: false
2626
- name: Set up Python 3.12
27-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
27+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2828
with:
2929
python-version: 3.12
3030

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040

4141
- name: Build and push Docker image to Docker Hub
42-
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
42+
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
4343
with:
4444
context: .
4545
file: scripts/Dockerfile

.github/workflows/periodic_benchmarks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
persist-credentials: false
3434

3535
- name: Set up Python 3.12
36-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
36+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
3737
with:
3838
python-version: 3.12
3939

@@ -70,7 +70,7 @@ jobs:
7070
contents: write
7171
steps:
7272
- name: Set up Python 3.12
73-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
73+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
7474
with:
7575
python-version: 3.12
7676

@@ -85,7 +85,7 @@ jobs:
8585
persist-credentials: false
8686

8787
- name: Download results artifact(s)
88-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
88+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
8989
with:
9090
path: results
9191
merge-multiple: true

.github/workflows/publish_pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717
with:
1818
persist-credentials: true
19-
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
19+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2020
with:
2121
python-version: 3.12
2222

@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Download artifacts
42-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
42+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
4343
with:
4444
path: deploy
4545
merge-multiple: true

.github/workflows/run_benchmarks_over_history.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
with:
4242
persist-credentials: false
4343
- name: Set up Python 3.12
44-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
44+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
4545
with:
4646
python-version: 3.12
4747

@@ -132,7 +132,7 @@ jobs:
132132
contents: write
133133
steps:
134134
- name: Set up Python 3.12
135-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
135+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
136136
with:
137137
python-version: 3.12
138138

@@ -147,7 +147,7 @@ jobs:
147147
persist-credentials: false
148148

149149
- name: Download results artifact(s)
150-
uses: actions/download-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
150+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.6.2
151151
with:
152152
name: asv_over_history_results
153153
path: results

.github/workflows/run_periodic_tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
run: choco install graphviz --version=8.0.5
6767

6868
- name: Set up Python ${{ matrix.python-version }}
69-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
69+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
7070
with:
7171
python-version: ${{ matrix.python-version }}
7272

@@ -86,7 +86,7 @@ jobs:
8686

8787
- name: Upload coverage report
8888
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
89-
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
89+
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
9090
with:
9191
token: ${{ secrets.CODECOV_TOKEN }}
9292

@@ -115,7 +115,7 @@ jobs:
115115
sudo apt-get install texlive-latex-extra dvipng
116116
117117
- name: Set up Python
118-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
118+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
119119
with:
120120
python-version: 3.11
121121

@@ -152,7 +152,7 @@ jobs:
152152
sudo apt-get install libopenblas-dev texlive-latex-extra dvipng
153153
154154
- name: Set up Python 3.12
155-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
155+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
156156
with:
157157
python-version: 3.12
158158

@@ -186,7 +186,7 @@ jobs:
186186
sudo apt-get install libopenblas-dev texlive-latex-extra dvipng
187187
188188
- name: Set up Python 3.12
189-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
189+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
190190
with:
191191
python-version: 3.12
192192

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ jobs:
6565
# Upload the results to GitHub's code scanning dashboard (optional).
6666
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
6767
- name: "Upload to code-scanning"
68-
uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
68+
uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
6969
with:
7070
sarif_file: results.sarif

.github/workflows/test_on_push.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
persist-credentials: false
3030
- name: Setup Python
31-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
31+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
3232
with:
3333
python-version: 3.12
3434

@@ -93,7 +93,7 @@ jobs:
9393

9494
- name: Set up Python ${{ matrix.python-version }}
9595
id: setup-python
96-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
96+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
9797
with:
9898
python-version: ${{ matrix.python-version }}
9999
cache: 'pip'
@@ -114,7 +114,7 @@ jobs:
114114

115115
- name: Upload coverage report
116116
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
117-
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
117+
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
118118
with:
119119
token: ${{ secrets.CODECOV_TOKEN }}
120120

@@ -152,7 +152,7 @@ jobs:
152152
153153
- name: Set up Python
154154
id: setup-python
155-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
155+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
156156
with:
157157
python-version: 3.11
158158
cache: 'pip'
@@ -198,7 +198,7 @@ jobs:
198198
199199
- name: Set up Python 3.12
200200
id: setup-python
201-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
201+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
202202
with:
203203
python-version: 3.12
204204
cache: 'pip'
@@ -241,7 +241,7 @@ jobs:
241241
242242
- name: Set up Python 3.12
243243
id: setup-python
244-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
244+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
245245
with:
246246
python-version: 3.12
247247
cache: 'pip'

.pre-commit-config.yaml

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

55
repos:
66
- repo: https://github.com/astral-sh/ruff-pre-commit
7-
rev: "v0.11.2"
7+
rev: "v0.11.7"
88
hooks:
99
- id: ruff
1010
args: [--fix, --show-fixes]
@@ -44,7 +44,7 @@ repos:
4444
- id: sp-repo-review
4545

4646
- repo: https://github.com/woodruffw/zizmor-pre-commit
47-
rev: v1.5.2
47+
rev: v1.6.0
4848
hooks:
4949
- id: zizmor
5050
args: [--pedantic]

CHANGELOG.md

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

3+
## Optimizations
4+
5+
- Add a solver option to change `on_extrapolation` behavior to `"error"`, `"warn"`, or `"ignore"` on extrapolation events. ([#4993](https://github.com/pybamm-team/PyBaMM/pull/4993))
6+
- Improve reliability of `CasadiAlgebraicSolver` and added an option for the `step_tol` of the Newton iteration. ([#4985](https://github.com/pybamm-team/PyBaMM/pull/4985))
7+
- Speed up calculation of variable sensitivities in `ProcessedVariable` ([#5000](https://github.com/pybamm-team/PyBaMM/pull/5000))
8+
9+
## Bug fixes
10+
11+
- Fixed a bug in the `QuickPlot` which would return empty values for 1D variables at the beginning and end of a timespan. ([#4991](https://github.com/pybamm-team/PyBaMM/pull/4991))
12+
- Fixed a bug in the `Exponential1DSubMesh` where the mesh was not being created correctly for non-zero minimum values. ([#4989](https://github.com/pybamm-team/PyBaMM/pull/4989))
13+
14+
## Breaking changes
15+
16+
- Remove sensitivity functionality for Casadi and Scipy solvers, only `pybamm.IDAKLU` solver can calculate sensitivities. ([#4975](https://github.com/pybamm-team/PyBaMM/pull/4975))
17+
18+
# [v25.4.2](https://github.com/pybamm-team/PyBaMM/tree/v25.4.2) - 2025-04-17
19+
20+
## Bug fixes
21+
22+
- Improve reliability of `AlgebraicSolver` and change `ElectrodeSOHHalfCell` solver to a Trust-Region method. ([#4982](https://github.com/pybamm-team/PyBaMM/pull/4982))
23+
24+
# [v25.4.1](https://github.com/pybamm-team/PyBaMM/tree/v25.4.1) - 2025-04-16
25+
26+
## Features
27+
28+
- Added "use lumped thermal capacity" option in lumped thermal model ([#4968](https://github.com/pybamm-team/PyBaMM/pull/4968))
29+
30+
## Bug fixes
31+
32+
- Remove a regularization term in the harmonic mean. ([#4977](https://github.com/pybamm-team/PyBaMM/pull/4977))
33+
34+
## Breaking changes
35+
36+
- Changed default solver to `pybamm.IDAKLUSolver`. ([#4915](https://github.com/pybamm-team/PyBaMM/pull/4915))
37+
338
# [v25.4.0](https://github.com/pybamm-team/PyBaMM/tree/v25.4.0) - 2025-04-02
439

540
## Features

0 commit comments

Comments
 (0)