Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaCourtier committed Aug 5, 2024
1 parent bf01b7e commit 71a95cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybop/models/empirical/base_ecm.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_initial_state(
initial_soc = np.minimum(np.maximum(initial_soc, 0.0), 1.0)

elif isinstance(initial_value, (int, float)):
if not 0 <= initial_soc <= 1:
if not 0 <= initial_value <= 1:
raise ValueError("Initial SOC should be between 0 and 1")
initial_soc = initial_value

Expand Down

0 comments on commit 71a95cf

Please sign in to comment.