Skip to content

Commit

Permalink
Fixing conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunhopang committed Feb 20, 2024
1 parent d476e68 commit 145b41a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jimgw/single_event/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import jax.numpy as jnp
from jax.scipy.special import i0e, logsumexp
from jax.scipy.integrate import trapezoid
from jax import jit
from jaxtyping import Float, Array

Expand Down Expand Up @@ -35,7 +36,7 @@ def inner_product(
# psd_interp = jnp.interp(frequency, psd_frequency, psd)
df = frequency[1] - frequency[0]
integrand = jnp.conj(h1) * h2 / psd
return 4.0 * jnp.real(jnp.trapz(integrand, dx=df))
return 4.0 * jnp.real(trapezoid(integrand, dx=df))


@jit
Expand Down

0 comments on commit 145b41a

Please sign in to comment.