Skip to content

Commit

Permalink
#1477 fix codacity
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Aug 4, 2021
1 parent 88ecb3f commit 1b32660
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pybamm/solvers/processed_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,7 @@ def initialise_sensitivity_explicit_forward(self):
"dvar_dp", [t_casadi, y_casadi, p_casadi_stacked], [dvar_dp]
)
for index, (ts, ys) in enumerate(zip(self.all_ts, self.all_ys)):
for idx in range(len(ts)):
t = ts[idx]
for idx, t in enumerate(ts):
u = ys[:, idx]
next_dvar_dy_eval = dvar_dy_func(t, u, inputs_stacked)
next_dvar_dp_eval = dvar_dp_func(t, u, inputs_stacked)
Expand Down

0 comments on commit 1b32660

Please sign in to comment.