Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/gwkokab/models/mass/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,12 @@ def __init__(
# Compute the normalization constant for primary mass distribution

self._m1s = jnp.linspace(mmin, mmax, 1000)
self._logZ = jnp.trapezoid(
jnp.exp(self._log_prob_m1_unnorm(self._m1s)),
self._m1s,
axis=0,
self._logZ = jnp.log(
jnp.trapezoid(
jnp.exp(self._log_prob_m1_unnorm(self._m1s)),
self._m1s,
axis=0,
)
)
Comment thread
Qazalbash marked this conversation as resolved.
Outdated

# Compute the normalization constant for mass ratio distribution
Expand Down
Loading