From 1ec0589f8ee3438041048ef98dbf949b494eaa46 Mon Sep 17 00:00:00 2001 From: David Straub Date: Fri, 9 Oct 2026 22:38:46 +0200 Subject: [PATCH] Support PyBaMM 26.10 --- .github/workflows/test.yml | 12 ++++++------ pyproject.toml | 2 +- tests/cells/test_lead_acid.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ccf4d7..d4adf16 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,18 +31,18 @@ jobs: matrix: include: # All Python versions against the latest PyBaMM - - {python-version: "3.10", pybamm-version: "26.9"} - - {python-version: "3.11", pybamm-version: "26.9"} - - {python-version: "3.12", pybamm-version: "26.9"} - - {python-version: "3.13", pybamm-version: "26.9"} - - {python-version: "3.14", pybamm-version: "26.9"} + - {python-version: "3.10", pybamm-version: "26.10"} + - {python-version: "3.11", pybamm-version: "26.10"} + - {python-version: "3.12", pybamm-version: "26.10"} + - {python-version: "3.13", pybamm-version: "26.10"} + - {python-version: "3.14", pybamm-version: "26.10"} # Older PyBaMM versions against the latest Python they support. # Keep exactly the latest 6 releases (see policy in pyproject.toml). - - {python-version: "3.14", pybamm-version: "26.4"} - {python-version: "3.14", pybamm-version: "26.5"} - {python-version: "3.14", pybamm-version: "26.6"} - {python-version: "3.14", pybamm-version: "26.7"} - {python-version: "3.14", pybamm-version: "26.8"} + - {python-version: "3.14", pybamm-version: "26.9"} steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 31eee7e..45c0280 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ dependencies = [ # remove its CI row and any workarounds only it needed. A version may be # dropped earlier if it blocks a fix or feature. Raising the lower bound # requires a minor (not patch) pathsim-batt release. - "pybamm>=26.4,<26.10; sys_platform != 'emscripten'", + "pybamm>=26.5,<26.11; sys_platform != 'emscripten'", ] [project.optional-dependencies] diff --git a/tests/cells/test_lead_acid.py b/tests/cells/test_lead_acid.py index 633143b..067b74d 100644 --- a/tests/cells/test_lead_acid.py +++ b/tests/cells/test_lead_acid.py @@ -83,7 +83,7 @@ def test_monolithic_electrothermal_raises(self): def test_cosim_electrical_smoke(self): # On PyBaMM < 26.7, LOQS disables its Jacobian and IDAKLUSolver (the # co-sim default) errors without one; CasadiSolver works on every - # pinned version (26.4-26.9), so use it explicitly here. + # pinned version (26.5-26.10), so use it explicitly here. solver = pybamm.CasadiSolver(mode="safe") cell = CellCoSimElectrical( model=self._model(),