From 721cd07979ed9641487fbd3dd838b7a266a9942c Mon Sep 17 00:00:00 2001 From: xuyuon <116078673+xuyuon@users.noreply.github.com> Date: Thu, 5 Sep 2024 19:43:30 +0800 Subject: [PATCH] Debug optimizer --- src/jimgw/single_event/likelihood.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/jimgw/single_event/likelihood.py b/src/jimgw/single_event/likelihood.py index c26dff2c..a017e023 100644 --- a/src/jimgw/single_event/likelihood.py +++ b/src/jimgw/single_event/likelihood.py @@ -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