diff --git a/pybamm/models/full_battery_models/lithium_ion/electrode_soh_half_cell.py b/pybamm/models/full_battery_models/lithium_ion/electrode_soh_half_cell.py index 1e237e73c8..8c22cf2ada 100644 --- a/pybamm/models/full_battery_models/lithium_ion/electrode_soh_half_cell.py +++ b/pybamm/models/full_battery_models/lithium_ion/electrode_soh_half_cell.py @@ -21,7 +21,7 @@ class ElectrodeSOHHalfCell(pybamm.BaseModel): """ - def __init__(self, name="Electrode-specific SOH model"): + def __init__(self, name="ElectrodeSOH model"): pybamm.citations.register("Mohtat2019") super().__init__(name) param = pybamm.LithiumIonParameters({"working electrode": "positive"}) @@ -140,7 +140,7 @@ def get_min_max_stoichiometries( parameter_values : pybamm.ParameterValues The parameter values to use in the calculation """ - esoh_model = pybamm.lithium_ion.ElectrodeSOHHalfCell(options) + esoh_model = pybamm.lithium_ion.ElectrodeSOHHalfCell("ElectrodeSOH") param = pybamm.LithiumIonParameters(options) esoh_sim = pybamm.Simulation(esoh_model, parameter_values=parameter_values) Q_w = parameter_values.evaluate(param.p.Q_init) diff --git a/pybamm/simulation.py b/pybamm/simulation.py index 8805e925d0..380105d215 100644 --- a/pybamm/simulation.py +++ b/pybamm/simulation.py @@ -552,7 +552,7 @@ def solve( ) if ( self.operating_mode == "without experiment" - or self._model.name == "ElectrodeSOH model" + or "ElectrodeSOH" in self._model.name ): if t_eval is None: raise pybamm.SolverError(