Skip to content

Commit 5b1ef70

Browse files
authored
Merge pull request #4598 from pybamm-team/v24.11.0
Release v24.11.0
2 parents 0e50894 + 97a37fd commit 5b1ef70

File tree

278 files changed

+11433
-5853
lines changed

Some content is hidden

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

278 files changed

+11433
-5853
lines changed

.all-contributorsrc

+32-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,8 @@
747747
"profile": "https://github.com/AbhishekChaudharii",
748748
"contributions": [
749749
"doc",
750-
"code"
750+
"code",
751+
"test"
751752
]
752753
},
753754
{
@@ -960,6 +961,36 @@
960961
"code",
961962
"test"
962963
]
964+
},
965+
{
966+
"login": "medha-14",
967+
"name": "Medha Bhardwaj",
968+
"avatar_url": "https://avatars.githubusercontent.com/u/143182673?v=4",
969+
"profile": "https://github.com/medha-14",
970+
"contributions": [
971+
"code"
972+
]
973+
},
974+
{
975+
"login": "MarcBerliner",
976+
"name": "Marc Berliner",
977+
"avatar_url": "https://avatars.githubusercontent.com/u/34451391?v=4",
978+
"profile": "http://marcberliner.com",
979+
"contributions": [
980+
"code",
981+
"doc",
982+
"infra",
983+
"maintenance"
984+
]
985+
},
986+
{
987+
"login": "Aswinr24",
988+
"name": "Aswinr24",
989+
"avatar_url": "https://avatars.githubusercontent.com/u/135364633?v=4",
990+
"profile": "https://github.com/Aswinr24",
991+
"contributions": [
992+
"test"
993+
]
963994
}
964995
],
965996
"contributorsPerLine": 7,

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ src/pybamm/meshes/ @martinjrobins @rtimms @valentinsulzer @rtimms
1010
src/pybamm/models/ @brosaplanella @DrSOKane @rtimms @valentinsulzer @TomTranter @rtimms
1111
src/pybamm/parameters/ @brosaplanella @DrSOKane @rtimms @valentinsulzer @TomTranter @rtimms @kratman
1212
src/pybamm/plotting/ @martinjrobins @rtimms @Saransh-cpp @valentinsulzer @rtimms @kratman @agriyakhetarpal
13-
src/pybamm/solvers/ @martinjrobins @rtimms @valentinsulzer @TomTranter @rtimms
13+
src/pybamm/solvers/ @martinjrobins @rtimms @valentinsulzer @TomTranter @rtimms @MarcBerliner
1414
src/pybamm/spatial_methods/ @martinjrobins @rtimms @valentinsulzer @rtimms
1515
src/pybamm/* @pybamm-team/maintainers # the files directly under /pybamm/, will not recurse
1616

.github/release_reminder.md

-10
This file was deleted.

.github/workflows/benchmark_on_push.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ concurrency:
88
group: ${{ github.workflow }}-${{ github.ref }}
99
cancel-in-progress: true
1010

11+
env:
12+
PYBAMM_DISABLE_TELEMETRY: "true"
13+
1114
jobs:
1215
benchmarks:
1316
runs-on: ubuntu-latest

.github/workflows/lychee_url_checker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
# use stable version for now to avoid breaking changes
3030
- name: Lychee URL checker
31-
uses: lycheeverse/lychee-action@v1.10.0
31+
uses: lycheeverse/lychee-action@v2.1.0
3232
with:
3333
# arguments with file types to check
3434
args: >-

.github/workflows/periodic_benchmarks.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
# workflow manually
1616
workflow_dispatch:
1717

18+
env:
19+
PYBAMM_DISABLE_TELEMETRY: "true"
20+
1821
jobs:
1922
benchmarks:
2023
runs-on: ubuntu-latest
@@ -51,7 +54,7 @@ jobs:
5154
LD_LIBRARY_PATH: $HOME/.local/lib
5255

5356
- name: Upload results as artifact
54-
uses: actions/upload-artifact@v4.3.6
57+
uses: actions/upload-artifact@v4.4.3
5558
with:
5659
name: asv_periodic_results
5760
path: results

.github/workflows/publish_pypi.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818

1919
# Set options available for all jobs that use cibuildwheel
2020
env:
21+
PYBAMM_DISABLE_TELEMETRY: "true"
2122
# Increase pip debugging output, equivalent to `pip -vv`
2223
CIBW_BUILD_VERBOSITY: 2
2324
# Disable build isolation to allow pre-installing build-time dependencies.
@@ -75,6 +76,7 @@ jobs:
7576
run: pipx run cibuildwheel --output-dir wheelhouse
7677
env:
7778
CIBW_ENVIRONMENT: >
79+
PYBAMM_DISABLE_TELEMETRY="true"
7880
PYBAMM_USE_VCPKG=ON
7981
VCPKG_ROOT_DIR=C:\vcpkg
8082
VCPKG_DEFAULT_TRIPLET=x64-windows-static-md
@@ -92,7 +94,7 @@ jobs:
9294
python -c "import pybamm; print(pybamm.IDAKLUSolver())"
9395
python -m pytest -m cibw {project}/tests/unit
9496
- name: Upload Windows wheels
95-
uses: actions/upload-artifact@v4.3.6
97+
uses: actions/upload-artifact@v4.4.3
9698
with:
9799
name: wheels_windows
98100
path: ./wheelhouse/*.whl
@@ -116,6 +118,8 @@ jobs:
116118
- name: Build wheels on Linux
117119
run: pipx run cibuildwheel --output-dir wheelhouse
118120
env:
121+
CIBW_ENVIRONMENT: >
122+
PYBAMM_DISABLE_TELEMETRY="true"
119123
CIBW_ARCHS_LINUX: x86_64
120124
CIBW_BEFORE_ALL_LINUX: >
121125
yum -y install openblas-devel lapack-devel &&
@@ -129,7 +133,7 @@ jobs:
129133
python -m pytest -m cibw {project}/tests/unit
130134
131135
- name: Upload wheels for Linux
132-
uses: actions/upload-artifact@v4.3.6
136+
uses: actions/upload-artifact@v4.4.3
133137
with:
134138
name: wheels_manylinux
135139
path: ./wheelhouse/*.whl
@@ -242,7 +246,9 @@ jobs:
242246
python scripts/install_KLU_Sundials.py
243247
python -m cibuildwheel --output-dir wheelhouse
244248
env:
245-
# 10.13 for Intel (macos-12/macos-13), 11.0 for Apple Silicon (macos-14 and macos-latest)
249+
CIBW_ENVIRONMENT: >
250+
PYBAMM_DISABLE_TELEMETRY="true"
251+
# 10.13 for Intel (macos-13), 11.0 for Apple Silicon (macos-14 and macos-latest)
246252
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.os == 'macos-14' && '11.0' || '10.13' }}
247253
CIBW_ARCHS_MACOS: auto
248254
CIBW_BEFORE_BUILD: python -m pip install cmake casadi setuptools wheel delocate
@@ -261,7 +267,7 @@ jobs:
261267
python -m pytest -m cibw {project}/tests/unit
262268
263269
- name: Upload wheels for macOS (amd64, arm64)
264-
uses: actions/upload-artifact@v4.3.6
270+
uses: actions/upload-artifact@v4.4.3
265271
with:
266272
name: wheels_${{ matrix.os }}
267273
path: ./wheelhouse/*.whl
@@ -281,7 +287,7 @@ jobs:
281287
run: pipx run build --sdist
282288

283289
- name: Upload SDist
284-
uses: actions/upload-artifact@v4.3.6
290+
uses: actions/upload-artifact@v4.4.3
285291
with:
286292
name: sdist
287293
path: ./dist/*.tar.gz

.github/workflows/release_reminder.yml

-22
This file was deleted.

.github/workflows/run_benchmarks_over_history.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
ncommits:
1919
description: "Number of commits to benchmark between commit_start and commit_end"
2020
default: "100"
21+
22+
env:
23+
PYBAMM_DISABLE_TELEMETRY: "true"
24+
2125
jobs:
2226
benchmarks:
2327
runs-on: ubuntu-latest
@@ -46,7 +50,7 @@ jobs:
4650
${{ github.event.inputs.commit_start }}..${{ github.event.inputs.commit_end }}
4751
4852
- name: Upload results as artifact
49-
uses: actions/upload-artifact@v4.3.6
53+
uses: actions/upload-artifact@v4.4.3
5054
with:
5155
name: asv_over_history_results
5256
path: results

.github/workflows/run_periodic_tests.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- cron: "0 3 * * *"
1414

1515
env:
16+
PYBAMM_DISABLE_TELEMETRY: "true"
1617
FORCE_COLOR: 3
1718
PYBAMM_IDAKLU_EXPR_CASADI: ON
1819
PYBAMM_IDAKLU_EXPR_IREE: ON
@@ -31,7 +32,7 @@ jobs:
3132
strategy:
3233
fail-fast: false
3334
matrix:
34-
os: [ ubuntu-latest, macos-12, macos-14, windows-latest ]
35+
os: [ ubuntu-latest, macos-13, macos-14, windows-latest ]
3536
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
3637
name: Tests (${{ matrix.os }} / Python ${{ matrix.python-version }})
3738

@@ -46,7 +47,7 @@ jobs:
4647
sudo apt-get install gfortran gcc graphviz pandoc libopenblas-dev texlive-latex-extra dvipng
4748
4849
- name: Install macOS system dependencies
49-
if: matrix.os == 'macos-12' || matrix.os == 'macos-14'
50+
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
5051
env:
5152
HOMEBREW_NO_INSTALL_CLEANUP: 1
5253
HOMEBREW_NO_AUTO_UPDATE: 1
@@ -89,7 +90,7 @@ jobs:
8990

9091
- name: Upload coverage report
9192
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
92-
uses: codecov/codecov-action@v4.5.0
93+
uses: codecov/codecov-action@v5.0.2
9394
with:
9495
token: ${{ secrets.CODECOV_TOKEN }}
9596

.github/workflows/scorecard.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6060
# format to the repository Actions tab.
6161
- name: "Upload artifact"
62-
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
62+
uses: actions/upload-artifact@184d73b71b93c222403b2e7f1ffebe4508014249 # v4.4.1
6363
with:
6464
name: SARIF file
6565
path: results.sarif
@@ -68,6 +68,6 @@ jobs:
6868
# Upload the results to GitHub's code scanning dashboard (optional).
6969
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7070
- name: "Upload to code-scanning"
71-
uses: github/codeql-action/upload-sarif@2c779ab0d087cd7fe7b826087247c2c81f27bfa6 # v3.26.5
71+
uses: github/codeql-action/upload-sarif@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4
7272
with:
7373
sarif_file: results.sarif

.github/workflows/test_on_push.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
pull_request:
66

77
env:
8+
PYBAMM_DISABLE_TELEMETRY: "true"
89
FORCE_COLOR: 3
910
PYBAMM_IDAKLU_EXPR_CASADI: ON
1011
PYBAMM_IDAKLU_EXPR_IREE: ON
@@ -36,12 +37,11 @@ jobs:
3637
pre-commit run -a
3738
3839
run_unit_integration_and_coverage_tests:
39-
needs: style
4040
runs-on: ${{ matrix.os }}
4141
strategy:
4242
fail-fast: false
4343
matrix:
44-
os: [ubuntu-latest, macos-12, macos-14, windows-latest]
44+
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
4545
python-version: ["3.9", "3.10", "3.11", "3.12"]
4646
name: Tests (${{ matrix.os }} / Python ${{ matrix.python-version }})
4747

@@ -65,7 +65,7 @@ jobs:
6565
sudo apt-get install libopenblas-dev texlive-latex-extra dvipng
6666
6767
- name: Install macOS system dependencies
68-
if: matrix.os == 'macos-12' || matrix.os == 'macos-14'
68+
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
6969
env:
7070
HOMEBREW_NO_INSTALL_CLEANUP: 1
7171
HOMEBREW_NO_AUTO_UPDATE: 1
@@ -123,7 +123,7 @@ jobs:
123123

124124
- name: Upload coverage report
125125
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
126-
uses: codecov/codecov-action@v4.5.0
126+
uses: codecov/codecov-action@v5.0.2
127127
with:
128128
token: ${{ secrets.CODECOV_TOKEN }}
129129

@@ -132,7 +132,6 @@ jobs:
132132

133133
# Skips IDAKLU module compilation for speedups, which is already tested in other jobs.
134134
run_doctests:
135-
needs: style
136135
runs-on: ubuntu-latest
137136
strategy:
138137
fail-fast: false
@@ -177,7 +176,6 @@ jobs:
177176
run: python -m nox -s docs
178177

179178
run_example_tests:
180-
needs: style
181179
runs-on: ubuntu-latest
182180
strategy:
183181
fail-fast: false
@@ -233,7 +231,6 @@ jobs:
233231
run: python -m nox -s examples
234232

235233
run_scripts_tests:
236-
needs: style
237234
runs-on: ubuntu-latest
238235
strategy:
239236
fail-fast: false

.github/workflows/work_precision_sets.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types: [published]
66
workflow_dispatch:
77

8+
env:
9+
PYBAMM_DISABLE_TELEMETRY: "true"
10+
811
jobs:
912
benchmarks_on_release:
1013
if: github.repository_owner == 'pybamm-team'
@@ -27,7 +30,7 @@ jobs:
2730
python benchmarks/work_precision_sets/time_vs_reltols.py
2831
python benchmarks/work_precision_sets/time_vs_abstols.py
2932
- name: Create Pull Request
30-
uses: peter-evans/create-pull-request@v6
33+
uses: peter-evans/create-pull-request@v7
3134
with:
3235
delete-branch: true
3336
branch-suffix: short-commit-hash

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ input/*
4646

4747
# simulation outputs
4848
out/
49-
config.py
5049
matplotlibrc
5150
*.pickle
5251
*.sav
@@ -65,6 +64,7 @@ coverage.xml
6564
htmlcov/
6665

6766
# virtual environment
67+
.venv
6868
env/
6969
venv/
7070
venv3.5/

.lycheeignore

+3
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ file:///home/runner/work/PyBaMM/PyBaMM/docs/source/user_guide/fundamentals/pybam
1515

1616
# Errors in docs/source/user_guide/index.md
1717
file:///home/runner/work/PyBaMM/PyBaMM/docs/source/user_guide/api_docs
18+
19+
# Telemetry
20+
https://us.i.posthog.com

0 commit comments

Comments
 (0)