Skip to content

Commit

Permalink
0
Browse files Browse the repository at this point in the history
  • Loading branch information
lockwo committed Aug 7, 2024
1 parent 3aee2f5 commit b183abd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions diffrax/_integrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,10 +1014,15 @@ def _promote(yi):
del timelikes

# Backward compatibility
if isinstance(
solver, (EulerHeun, ItoMilstein, StratonovichMilstein)
) and _term_compatible(
y0, args, terms, (ODETerm, AbstractTerm), solver.term_compatible_contr_kwargs
if (
isinstance(solver, (EulerHeun, ItoMilstein, StratonovichMilstein))
and _term_compatible(
y0,
args,
terms,
(ODETerm, AbstractTerm),
solver.term_compatible_contr_kwargs,
)[0]
):
warnings.warn(
"Passing `terms=(ODETerm(...), SomeOtherTerm(...))` to "
Expand Down

0 comments on commit b183abd

Please sign in to comment.