Skip to content

Commit

Permalink
tweaked complex warning
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-kidger committed Aug 17, 2024
1 parent 7384bfa commit 0679807
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions diffrax/_integrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,13 +953,13 @@ def diffeqsolve(

# Error checking and warning for complex dtypes
if any(
eqx.is_array(xi) and jnp.iscomplexobj(xi)
eqx.is_array_like(xi) and jnp.iscomplexobj(xi)
for xi in jtu.tree_leaves((terms, y0, args))
):
warnings.warn(
"Complex dtype support is a work in progress and may not produce correct "
"results. Consider splitting your computation into real and imaginary "
"parts instead.",
"Complex dtype support in Diffrax is a work in progress and may not yet "
"produce correct results. Consider splitting your computation into real "
"and imaginary parts instead.",
stacklevel=2,
)

Expand Down

0 comments on commit 0679807

Please sign in to comment.