Raise error for unknown parameter sets #3063
Labels
difficulty: easy
A good issue for someone new. Can be done in a few hours
priority: medium
To be resolved if time allows
Raise an error when you do e.g.
parameter_values = pybamm.ParameterValues("Junk")
.Need to replace
if isinstance(values, str) and values in pybamm.parameter_sets:
withif isinstance(values, str) and values in pybamm.parameter_sets.keys():
here and raise an error if the name isn't found.The text was updated successfully, but these errors were encountered: