Skip to content

Commit

Permalink
changed default value to float (#4366)
Browse files Browse the repository at this point in the history
* changed default value to float

* added type hint of float to target_soc
  • Loading branch information
ezpzbz committed Aug 21, 2024
1 parent 977dcf9 commit 25a9936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pybamm/parameters/parameter_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, values, chemistry=None):
pybamm.citations.register(citation)

@staticmethod
def create_from_bpx(filename, target_soc=1):
def create_from_bpx(filename, target_soc: float = 1):
"""
Parameters
----------
Expand Down

0 comments on commit 25a9936

Please sign in to comment.