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 May 1, 2024
1 parent 322c810 commit 9a03982
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions pybop/costs/fitting_costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ def _evaluateS1(self, x):
return errors, gradients
return np.inner(self.weights, errors), np.inner(self.weights, gradients)



def set_fail_gradient(self, de):
"""
Set the fail gradient to a specified value.
Expand Down
2 changes: 1 addition & 1 deletion pybop/plotting/plot_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def plot_dataset(
# Get data dictionary
dataset.check(signal)

if not hasattr(dataset, '__len__'):
if not hasattr(dataset, "__len__"):
dataset = [dataset]

for data in dataset:
Expand Down
5 changes: 1 addition & 4 deletions pybop/problems/fitting_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import pybop


"""
TODO:
1. Allow multiple datasets, one model
Expand Down Expand Up @@ -75,9 +74,7 @@ def __init__(
if model is not None:
for thismodel, thisdataset in zip(self._model, self._dataset):
thismodel.signal = self.signal
thismodel.additional_variables = (
self.additional_variables
)
thismodel.additional_variables = self.additional_variables
# TODO generalise to allow different numbers of parameters, outputs
thismodel.n_parameters = self.n_parameters
thismodel.n_outputs = self.n_outputs
Expand Down

0 comments on commit 9a03982

Please sign in to comment.