Skip to content

Commit 62bc566

Browse files
authored
Merge branch 'develop' into 5154-input-params
2 parents 86c7c4d + 847723e commit 62bc566

29 files changed

+1621
-238
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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
27+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2828
with:
2929
python-version: 3.12
3030

.github/workflows/periodic_benchmarks.yml

Lines changed: 2 additions & 2 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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
36+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
73+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
7474
with:
7575
python-version: 3.12
7676

.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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1717
with:
1818
persist-credentials: true
19-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
19+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2020
with:
2121
python-version: 3.12
2222

@@ -45,6 +45,6 @@ jobs:
4545
merge-multiple: true
4646

4747
- name: Publish on PyPI
48-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
48+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
4949
with:
5050
packages-dir: deploy/

.github/workflows/run_benchmarks_over_history.yml

Lines changed: 5 additions & 5 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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
44+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
4545
with:
4646
python-version: 3.12
4747

@@ -58,7 +58,7 @@ jobs:
5858
5959
- name: Validate commit_start
6060
id: validate_start
61-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
61+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
6262
with:
6363
script: |
6464
const input = context.payload.inputs.commit_start;
@@ -70,7 +70,7 @@ jobs:
7070
7171
- name: Validate commit_end
7272
id: validate_end
73-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
73+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
7474
with:
7575
script: |
7676
const input = context.payload.inputs.commit_end;
@@ -82,7 +82,7 @@ jobs:
8282
8383
- name: Validate ncommits
8484
id: validate_ncommits
85-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
85+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
8686
with:
8787
script: |
8888
const input = context.payload.inputs.ncommits;
@@ -132,7 +132,7 @@ jobs:
132132
contents: write
133133
steps:
134134
- name: Set up Python 3.12
135-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
135+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
136136
with:
137137
python-version: 3.12
138138

.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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
69+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0
89+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
118+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
155+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
189+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.5
68+
uses: github/codeql-action/upload-sarif@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.29.5
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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
31+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
96+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0
117+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
155+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
201+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
244+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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.12.10"
7+
rev: "v0.12.12"
88
hooks:
99
- id: ruff
1010
args: [--fix, --show-fixes]
@@ -13,7 +13,7 @@ repos:
1313
types_or: [python, pyi, jupyter]
1414

1515
- repo: https://github.com/adamchainz/blacken-docs
16-
rev: "1.19.1"
16+
rev: "1.20.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
@@ -9,6 +9,7 @@
99

1010
## Bug fixes
1111

12+
- Fix a bug in setting initial stoichiometries where the reference temperature was used instead of the initial temperature. ([#5189](https://github.com/pybamm-team/PyBaMM/pull/5189))
1213
- Fix a bug in the calculation of "Bulk" OCP terms in hysteresis models ([#5169](https://github.com/pybamm-team/PyBaMM/pull/5169))
1314
- Fixed a bug where the final duration of a drive cycle would not be inferred correctly. ([#5153](https://github.com/pybamm-team/PyBaMM/pull/5153))
1415

@@ -26,6 +27,7 @@
2627
- Creates `BaseProcessedVariable` to enable object combination when adding solutions together ([#5076](https://github.com/pybamm-team/PyBaMM/pull/5076))
2728
- Added a `Constant` symbol for named constants. This is a subclass of `Scalar` and is used to represent named constants such as the gas constant. This avoids constants being simplified out when constructing expressions. ([#5070](https://github.com/pybamm-team/PyBaMM/pull/5070))
2829
- Generalise `pybamm.DiscreteTimeSum` to allow it to be embedded in other expressions ([#5044](https://github.com/pybamm-team/PyBaMM/pull/5044))
30+
- Added an option for multiple initial conditions in IDAKLU solver ([#4981](https://github.com/pybamm-team/PyBaMM/pull/4981))
2931
- Adds `all` key-value pair to `output_variables` sensitivity dictionaries, accessible through `solution[var].sensitivities['all']`. Aligns shape with conventional solution sensitivities object. ([#5067](https://github.com/pybamm-team/PyBaMM/pull/5067))
3032
- Added a new `BaseHysteresisOpenCircuitPotential` class that sets variables for the lithiation and delithiation OCP and the hysteresis voltage (`H = U_lith - U_delith`). Allow the initial hysteresis state to be a function of position through the electrode. Allow the hysteresis decay rates of the Axen and Wycisk models to be a function of stoichiometry and temperature. Added a heat source term in each active material phase `Q_hys = i_vol * (U - U_eq)` where `i_vol` is the volumetric interfacial current density, `U` is the OCP (i.e. includes hysteresis), and `U_eq` is the "equilibrium OCP". Renamed the open-circuit potential models to be more descriptive. The options "Axen" and "Wycisk" are now "one-state hysteresis" and "one-state differential capacity hysteresis". The old option names still work but will raise a warning. ([#4893](https://github.com/pybamm-team/PyBaMM/pull/4893))
3133
- Add support for `output_variables` to `pybamm.DiscreteTimeSum` and `pybamm.ExplicitTimeIntegral` expressions. ([#5071](https://github.com/pybamm-team/PyBaMM/pull/5071))

src/pybamm/input/parameters/lithium_ion/Chen2020_composite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def silicon_ocp_lithiation_Mark2016(sto):
8282
+ p6 * sto**2
8383
+ p7 * sto
8484
+ p8
85-
)
85+
) + 1e-4 * (1 / sto + 1 / (sto - 1))
8686
return U_lithiation
8787

8888

@@ -205,7 +205,7 @@ def nmc_LGM50_ocp_Chen2020(sto):
205205
- 0.0428 * np.tanh(18.5138 * (sto - 0.5542))
206206
- 17.7326 * np.tanh(15.7890 * (sto - 0.3117))
207207
+ 17.5842 * np.tanh(15.9308 * (sto - 0.3120))
208-
)
208+
) + 1e-4 * (1 / sto + 1 / (sto - 1))
209209

210210
return u_eq
211211

0 commit comments

Comments
 (0)