Skip to content
Snippets Groups Projects
Commit 7249d697 authored by Leo Tsukada's avatar Leo Tsukada
Browse files

gstlal-inspiral/python/plots/dtdphi.py : undo the jacobian factor in calculating P(dt,dphi)

parent 3b203ef5
No related branches found
No related tags found
1 merge request!503O4a online dtdphi plotter
Pipeline #552514 passed with warnings
......@@ -63,8 +63,9 @@ def dtdphi2prob(dt, dphi, ifo1, ifo2, refsnr, refhorizon):
phi = {ifo1: 0, ifo2: dphi}
snr = {ifo1: refsnr[ifo1], ifo2: refsnr[ifo2]}
horizon = {ifo1: refhorizon[ifo1], ifo2: refhorizon[ifo2]}
snr_net = sum(x**2 for x in snr.values())**.5
# signature is (time, phase, snr, horizon)
p = TPDPDF.time_phase_snr(t, phi, snr, horizon) * (sum(s**2 for s in snr.values())**.5)**4
p = TPDPDF.time_phase_snr(t, phi, snr, horizon) * (snr_net)**4 / (snr_net / numpy.prod([x for x in snr.values()]))
return float(p)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment