Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 22, 2024
1 parent 4672625 commit 63f499a
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions pybamm/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ def set_up_and_parameterise_experiment(self):
This needs to be done here and not in the Experiment class because the nominal
cell capacity (from the parameters) is used to convert C-rate to current.
"""
msg = (
"pybamm.simulation.set_up_and_parameterise_experiment is not meant to be accessed directly,"
)
msg = "pybamm.simulation.set_up_and_parameterise_experiment is not meant to be accessed directly,"
warn(msg, DeprecationWarning)
# Update experiment using capacity
capacity = self._parameter_values["Nominal cell capacity [A.h]"]
Expand Down Expand Up @@ -222,10 +220,8 @@ def set_up_and_parameterise_model_for_experiment(self):
This increases set-up time since several models to be processed, but
reduces simulation time since the model formulation is efficient.
"""
msg = (
"pybamm.simulation.set_up_and_parameterise_model_for_experiment is not meant to be accessed directly,"
)
warn(msg,DeprecationWarning)
msg = "pybamm.simulation.set_up_and_parameterise_model_for_experiment is not meant to be accessed directly,"
warn(msg, DeprecationWarning)
self.experiment_unique_steps_to_model = {}
for op_number, op in enumerate(self.experiment.unique_steps):
new_model = self._model.new_copy()
Expand Down Expand Up @@ -336,9 +332,7 @@ 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."
)
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 63f499a

Please sign in to comment.