Skip to content

Commit 43802af

Browse files
don't get esoh solver for any non-lithium-ion model
1 parent 2e147ae commit 43802af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pybamm/simulation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,8 +1022,7 @@ def step(
10221022
def _get_esoh_solver(self, calc_esoh):
10231023
if (
10241024
calc_esoh is False
1025-
or isinstance(self._model, pybamm.lead_acid.BaseModel)
1026-
or isinstance(self._model, pybamm.equivalent_circuit.Thevenin)
1025+
or not isinstance(self._model, pybamm.lithium_ion.BaseModel)
10271026
or self._model.options["working electrode"] != "both"
10281027
):
10291028
return None

0 commit comments

Comments
 (0)