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

gstlal_inspiral_add_dt_dphi_snr_ratio_pdfs : changed to pass snr dictioary and...

gstlal_inspiral_add_dt_dphi_snr_ratio_pdfs : changed to pass snr dictioary and psd file name to the output .h5 file
parent 130dbda4
No related branches found
No related tags found
No related merge requests found
...@@ -18,11 +18,14 @@ ...@@ -18,11 +18,14 @@
import sys import sys
import numpy import numpy
import h5py
from gstlal.stats.inspiral_extrinsics import TimePhaseSNR from gstlal.stats.inspiral_extrinsics import TimePhaseSNR
# Read in and combine all of the input files # Read in and combine all of the input files
files = sys.argv[1:] h5_covmat = h5py.File(sys.argv[1])
TPS = TimePhaseSNR.from_hdf5(files[0], files[1:]) kwargs = {"SNR":h5_covmat["SNR"], "psd_fname":h5_covmat["psd"]}
files = sys.argv[2:]
TPS = TimePhaseSNR.from_hdf5(files[0], files[1:], **kwargs)
# compute the normalization # compute the normalization
time, phase, deff = TimePhaseSNR.tile(NSIDE = 8, NANGLE = 17) time, phase, deff = TimePhaseSNR.tile(NSIDE = 8, NANGLE = 17)
......
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