Skip to content

Commit

Permalink
don't get esoh solver for any non-lithium-ion model
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Jan 15, 2025
1 parent 2e147ae commit 43802af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pybamm/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,8 +1022,7 @@ def step(
def _get_esoh_solver(self, calc_esoh):
if (
calc_esoh is False
or isinstance(self._model, pybamm.lead_acid.BaseModel)
or isinstance(self._model, pybamm.equivalent_circuit.Thevenin)
or not isinstance(self._model, pybamm.lithium_ion.BaseModel)
or self._model.options["working electrode"] != "both"
):
return None
Expand Down

0 comments on commit 43802af

Please sign in to comment.