Commit 9e47bf61 authored by Vivien Raymond's avatar Vivien Raymond
Browse files

lalinference_pipe, when runnign on GraceDB trigger runs on all ifos contained in psd.xml.gz

Original: e71a9cc5aff706b136958295291de399b682baf8
parent 33262fba
......@@ -98,8 +98,8 @@ def readLValert(SNRthreshold=0,gid=None,flow=40.0,gracedb="gracedb",savepsdpath=
#Issues to identify IFO with good data that did not produce a trigger
#search_summary = lsctables.getTablesByType(xmldoc, lsctables.SearchSummaryTable)[0]
#ifos = search_summary[0].ifos.split(",")
coinc_table = lsctables.getTablesByType(xmldoc, lsctables.CoincTable)[0]
ifos = coinc_table[0].instruments.split(",")
#coinc_table = lsctables.getTablesByType(xmldoc, lsctables.CoincTable)[0]
#ifos = coinc_table[0].instruments.split(",")
trigSNR = coinctable[0].snr
# Parse PSD
......@@ -107,6 +107,8 @@ def readLValert(SNRthreshold=0,gid=None,flow=40.0,gracedb="gracedb",savepsdpath=
os.chdir(savepsdpath)[gracedb,"download", gid ,"psd.xml.gz"])
xmlpsd = lalseries.read_psd_xmldoc(utils.load_filename('psd.xml.gz',contenthandler = lalseries.LIGOLWContentHandler))
ifos = xmlpsd.keys()
if os.path.exists("psd.xml.gz"):
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