Skip to content

Commit

Permalink
Update check for ECM init_soc
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaCourtier committed Aug 5, 2024
1 parent baca0d7 commit dcabe89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pybop/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,9 @@ def predict(
inputs = self.parameters.verify(inputs)
parameter_set.update(inputs)

if init_soc is not None and "Initial SoC" in parameter_set.keys():
if init_soc is not None and isinstance(
self.pybamm_model, pybamm.equivalent_circuit.Thevenin
):
parameter_set["Initial SoC"] = init_soc
init_soc = None

Expand Down

0 comments on commit dcabe89

Please sign in to comment.