Skip to content

Commit

Permalink
Debug optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyuon committed Sep 5, 2024
1 parent 7c6759b commit 721cd07
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/jimgw/single_event/likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,7 @@ def original_likelihood(
)
optimal_SNR = 4 * jnp.sum(jnp.conj(h_dec) * h_dec / detector.psd * df).real
log_likelihood += match_filter_SNR - optimal_SNR / 2
print("Match filter SNR: ", match_filter_SNR)
print("Optimal SNR: ", optimal_SNR)
print("Log likelihood: ", log_likelihood)
raise ValueError("for debugging")

return log_likelihood

Expand Down

0 comments on commit 721cd07

Please sign in to comment.