Skip to content

Commit

Permalink
Ignore diffrax deprecation warning for now
Browse files Browse the repository at this point in the history
  • Loading branch information
f0uriest committed Aug 27, 2024
1 parent 59f9175 commit 2dab0a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions desc/magnetic_fields/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1592,8 +1592,10 @@ def default_terminating_event_fxn(state, **kwargs):

# suppress warnings till its fixed upstream:
# https://github.com/patrick-kidger/diffrax/issues/445
# also ignore deprecation warning for now until we actually need to deal with it
with warnings.catch_warnings():
warnings.filterwarnings("ignore", message="unhashable type")
warnings.filterwarnings("ignore", message="`diffrax.*discrete_terminating")
x = jnp.vectorize(intfun, signature="(k)->(n,k)")(x0)

Check warning on line 1599 in desc/magnetic_fields/_core.py

View check run for this annotation

Codecov / codecov/patch

desc/magnetic_fields/_core.py#L1596-L1599

Added lines #L1596 - L1599 were not covered by tests

x = jnp.where(jnp.isinf(x), jnp.nan, x)
Expand Down

0 comments on commit 2dab0a3

Please sign in to comment.