Commit 4f486f22 authored by Chad Hanna's avatar Chad Hanna

gstlal_inspiral_add_dt_dphi_snr_ratio_pdfs: fix an error in the norm logic

parent 7283e366
......@@ -13,13 +13,15 @@ time, phase, deff = TimePhaseSNR.tile(NSIDE = 8, NANGLE = 17)
# snr, but the TimePhaseSNR code actually undoes this...
h = {"H1":1., "L1":1., "V1":1.}
# set the norm to 1
combos = TPS.combos + (("H1",),("L1",),("V1",))
norm = dict((frozenset(k), 0.) for k in combos)
norm = dict((frozenset(k), 1.) for k in combos)
TPS.norm = norm
def extract_dict(DICT, keys):
return dict((k,v) for k,v in DICT.items() if k in keys)
norm = dict((frozenset(k), 0.) for k in combos)
for i in range(len(time["H1"])):
t = dict((k, v[i]) for k, v in time.items())
p = dict((k, v[i]) for k, v in phase.items())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment