File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
models/full_battery_models/lithium_ion Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class ElectrodeSOHHalfCell(pybamm.BaseModel):
2121
2222 """
2323
24- def __init__ (self , name = "Electrode-specific SOH model" ):
24+ def __init__ (self , name = "ElectrodeSOH model" ):
2525 pybamm .citations .register ("Mohtat2019" )
2626 super ().__init__ (name )
2727 param = pybamm .LithiumIonParameters ({"working electrode" : "positive" })
@@ -140,7 +140,7 @@ def get_min_max_stoichiometries(
140140 parameter_values : pybamm.ParameterValues
141141 The parameter values to use in the calculation
142142 """
143- esoh_model = pybamm .lithium_ion .ElectrodeSOHHalfCell (options )
143+ esoh_model = pybamm .lithium_ion .ElectrodeSOHHalfCell ("ElectrodeSOH" )
144144 param = pybamm .LithiumIonParameters (options )
145145 esoh_sim = pybamm .Simulation (esoh_model , parameter_values = parameter_values )
146146 Q_w = parameter_values .evaluate (param .p .Q_init )
Original file line number Diff line number Diff line change @@ -552,7 +552,7 @@ def solve(
552552 )
553553 if (
554554 self .operating_mode == "without experiment"
555- or self ._model .name == "ElectrodeSOH model"
555+ or "ElectrodeSOH" in self ._model .name
556556 ):
557557 if t_eval is None :
558558 raise pybamm .SolverError (
You can’t perform that action at this time.
0 commit comments