Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions papers/joss/design_plots.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# A script to generate design optimisation plots for the JOSS paper.
"""
A script to generate design optimisation plots for the JOSS paper.

NOTE: The design optimisation plots that appear in Figure 8 of the paper were
unfortunately generated with a bug in simulator._create_experiment_simulation().
PR 857 fixed and replaced this function with simulator.create_simulation() in
January 2026. The two design plots in figures/individual and one in
figures/combined were updated in PR 966, July 2026.
"""

import numpy as np
import pybamm
Expand Down Expand Up @@ -43,7 +50,6 @@
- Parameter("Positive electrode active material volume fraction"),
"Cell mass [kg]": pybop.pybamm.cell_mass(),
},
check_already_exists=False,
)

# Fitting parameters
Expand Down
Binary file modified papers/joss/figures/combined/design.pdf
Binary file not shown.
Binary file modified papers/joss/figures/individual/design_gravimetric.pdf
Binary file not shown.
Binary file modified papers/joss/figures/individual/design_prediction.pdf
Binary file not shown.
6 changes: 4 additions & 2 deletions papers/joss/param_plots.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# A script to generate parameterisation plots for the JOSS paper.

"""
A script to generate parameterisation plots for the JOSS paper.
"""

import matplotlib.pyplot as plt
import numpy as np
Expand Down Expand Up @@ -455,6 +456,7 @@
optim.optimiser.b1 = 0.85
optim.optimiser.b2 = 0.9
optim.optimiser.lam = 0.005
optim.optimiser._alpha = np.asarray([1.0, 0.22222222]) # noqa: SLF001 # retain the initial step size used for paper
if optimiser is pybop.GradientDescent:
optim.optimiser.set_learning_rate(eta=[11, 4.5])

Expand Down
Loading