Skip to content

Commit fd567d2

Browse files
Merge branch 'develop' into telemetry
2 parents 47311e6 + 82f7a0f commit fd567d2

30 files changed

+125
-84
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,15 @@
982982
"infra",
983983
"maintenance"
984984
]
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+
]
985994
}
986995
],
987996
"contributorsPerLine": 7,

.github/workflows/lychee_url_checker.yml

Lines changed: 1 addition & 1 deletion
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.0.2
3232
with:
3333
# arguments with file types to check
3434
args: >-

.github/workflows/periodic_benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
LD_LIBRARY_PATH: $HOME/.local/lib
5252

5353
- name: Upload results as artifact
54-
uses: actions/[email protected].1
54+
uses: actions/[email protected].3
5555
with:
5656
name: asv_periodic_results
5757
path: results

.github/workflows/publish_pypi.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
python -c "import pybamm; print(pybamm.IDAKLUSolver())"
9393
python -m pytest -m cibw {project}/tests/unit
9494
- name: Upload Windows wheels
95-
uses: actions/[email protected].1
95+
uses: actions/[email protected].3
9696
with:
9797
name: wheels_windows
9898
path: ./wheelhouse/*.whl
@@ -129,7 +129,7 @@ jobs:
129129
python -m pytest -m cibw {project}/tests/unit
130130
131131
- name: Upload wheels for Linux
132-
uses: actions/[email protected].1
132+
uses: actions/[email protected].3
133133
with:
134134
name: wheels_manylinux
135135
path: ./wheelhouse/*.whl
@@ -242,7 +242,7 @@ jobs:
242242
python scripts/install_KLU_Sundials.py
243243
python -m cibuildwheel --output-dir wheelhouse
244244
env:
245-
# 10.13 for Intel (macos-12/macos-13), 11.0 for Apple Silicon (macos-14 and macos-latest)
245+
# 10.13 for Intel (macos-13), 11.0 for Apple Silicon (macos-14 and macos-latest)
246246
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.os == 'macos-14' && '11.0' || '10.13' }}
247247
CIBW_ARCHS_MACOS: auto
248248
CIBW_BEFORE_BUILD: python -m pip install cmake casadi setuptools wheel delocate
@@ -261,7 +261,7 @@ jobs:
261261
python -m pytest -m cibw {project}/tests/unit
262262
263263
- name: Upload wheels for macOS (amd64, arm64)
264-
uses: actions/[email protected].1
264+
uses: actions/[email protected].3
265265
with:
266266
name: wheels_${{ matrix.os }}
267267
path: ./wheelhouse/*.whl
@@ -281,7 +281,7 @@ jobs:
281281
run: pipx run build --sdist
282282

283283
- name: Upload SDist
284-
uses: actions/[email protected].1
284+
uses: actions/[email protected].3
285285
with:
286286
name: sdist
287287
path: ./dist/*.tar.gz

.github/workflows/run_benchmarks_over_history.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
${{ github.event.inputs.commit_start }}..${{ github.event.inputs.commit_end }}
4747
4848
- name: Upload results as artifact
49-
uses: actions/[email protected].1
49+
uses: actions/[email protected].3
5050
with:
5151
name: asv_over_history_results
5252
path: results

.github/workflows/run_periodic_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
os: [ ubuntu-latest, macos-12, macos-14, windows-latest ]
34+
os: [ ubuntu-latest, macos-13, macos-14, windows-latest ]
3535
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
3636
name: Tests (${{ matrix.os }} / Python ${{ matrix.python-version }})
3737

@@ -46,7 +46,7 @@ jobs:
4646
sudo apt-get install gfortran gcc graphviz pandoc libopenblas-dev texlive-latex-extra dvipng
4747
4848
- name: Install macOS system dependencies
49-
if: matrix.os == 'macos-12' || matrix.os == 'macos-14'
49+
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
5050
env:
5151
HOMEBREW_NO_INSTALL_CLEANUP: 1
5252
HOMEBREW_NO_AUTO_UPDATE: 1

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
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@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
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@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
71+
uses: github/codeql-action/upload-sarif@f779452ac5af1c261dce0346a8f964149f49322b # v3.26.13
7272
with:
7373
sarif_file: results.sarif

.github/workflows/test_on_push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
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

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
types_or: [python, pyi, jupyter]
1414

1515
- repo: https://github.com/adamchainz/blacken-docs
16-
rev: "1.18.0"
16+
rev: "1.19.0"
1717
hooks:
1818
- id: blacken-docs
1919
additional_dependencies: [black==23.*]

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Features
44

5+
- Adds an option "voltage as a state" that can be "false" (default) or "true". If "true" adds an explicit algebraic equation for the voltage. ([#4507](https://github.com/pybamm-team/PyBaMM/pull/4507))
56
- Improved `QuickPlot` accuracy for simulations with Hermite interpolation. ([#4483](https://github.com/pybamm-team/PyBaMM/pull/4483))
67
- Added Hermite interpolation to the (`IDAKLUSolver`) that improves the accuracy and performance of post-processing variables. ([#4464](https://github.com/pybamm-team/PyBaMM/pull/4464))
78
- Added basic telemetry to record which functions are being run. See [Telemetry section in the User Guide](https://docs.pybamm.org/en/latest/source/user_guide/index.html#telemetry) for more information. ([#4441](https://github.com/pybamm-team/PyBaMM/pull/4441))
@@ -20,6 +21,7 @@
2021

2122
## Bug Fixes
2223

24+
- Added `_from_json()` functionality to `Sign` which was erroneously omitted previously. ([#4517](https://github.com/pybamm-team/PyBaMM/pull/4517))
2325
- Fixed bug where IDAKLU solver failed when `output variables` were specified and an extrapolation event is present. ([#4440](https://github.com/pybamm-team/PyBaMM/pull/4440))
2426

2527
## Breaking changes

0 commit comments

Comments
 (0)