Skip to content

Commit d820e11

Browse files
example and changelog
1 parent 3752b4c commit d820e11

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
## Breaking changes
2020

21+
- `ElectrodeSOH.solve` now returns a `{str: float}` dict instead of a `pybamm.Solution` object (to avoid having to do `.data[0]` every time). In any code that uses `sol = ElectrodeSOH.solve()`, `sol[key].data[0]` should be replaced with `sol[key]`. ([#2779](https://github.com/pybamm-team/PyBaMM/pull/2779))
2122
- Renamed "Measured open circuit voltage [V]" to "Surface open-circuit voltage [V]". This variable was calculated from surface particle concentrations, and hence "hid" the overpotential from particle gradients. The new variable "Open-circuit voltage [V]" is calculated from bulk particle concentrations instead. ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
2223
- Renamed all references to "open circuit" to be "open-circuit" instead. ([#2740](https://github.com/pybamm-team/PyBaMM/pull/2740))
2324
- Renamed parameter "1 + dlnf/dlnc" to "Thermodynamic factor". ([#2727](https://github.com/pybamm-team/PyBaMM/pull/2727))

examples/notebooks/models/electrode-state-of-health.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,8 @@
422422
" ax.set_xlabel(\"Cyclable lithium [A.h]\")\n",
423423
" ax.set_ylabel(ks[0][0])\n",
424424
" ax.set_xlim([np.min(sweep[\"Q_Li\"]),np.max(sweep[\"Q_Li\"])])\n",
425-
" ax.axvline(sol_init_QLi[\"Q_Li\"].data[0],c=\"k\",linestyle=\"--\")\n",
426-
" ax.axvline(sol_init_Q[\"Q_Li\"].data[0],c=\"r\",linestyle=\"--\")\n",
425+
" ax.axvline(sol_init_QLi[\"Q_Li\"],c=\"k\",linestyle=\"--\")\n",
426+
" ax.axvline(sol_init_Q[\"Q_Li\"],c=\"r\",linestyle=\"--\")\n",
427427
" # Plot capacities of electrodes\n",
428428
" # ax.axvline(Qn,c=\"b\",linestyle=\"--\")\n",
429429
" # ax.axvline(Qp,c=\"r\",linestyle=\"--\")\n",

0 commit comments

Comments
 (0)