Skip to content

Commit

Permalink
fix: use self.eq_param_index inside _diff_eqs_wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
sathvikbhagavan committed Dec 31, 2023
1 parent b5d457d commit b90ab42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurodiffeq/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ def __init__(self, ode_system, conditions, t_min, t_max,

def _diff_eqs_wrapper(*variables):
funcs_and_coords = variables[:N_FUNCTIONS + N_COORDS]
eq_params = tuple(variables[idx] for idx in eq_param_index)
eq_params = tuple(variables[idx] for idx in self.eq_param_index)
return ode_system(*funcs_and_coords, *eq_params)

super(BundleSolver1D, self).__init__(
Expand Down

0 comments on commit b90ab42

Please sign in to comment.