Skip to content

Commit

Permalink
Add deprecated warning for set_parameters in simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Akhil-Sharma30 committed Jan 22, 2024
1 parent f4188c1 commit 4aa147c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pybamm/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,10 @@ def set_parameters(self):
"""
A method to set the parameters in the model and the associated geometry.
"""

msg = (
"pybamm.set_paramters is meant to be accessed directly."
)
warn(msg, DeprecationWarning)
if self.model_with_set_params:
return

Expand Down

0 comments on commit 4aa147c

Please sign in to comment.