Commit 5c2693ae authored by Vivien Raymond's avatar Vivien Raymond
Browse files

lalinference_pipe, fixes "UnboundLocalError: local variable 'fhigh' referenced before assignment"

Original: b7b30331bd6042dd6c46890d254aaa21abec817c
parent 4d8fae03
......@@ -93,6 +93,7 @@ def readLValert(SNRthreshold=0,gid=None,flow=40.0,gracedb="gracedb"):
print "gracedb download %s psd.xml.gz" % gid
subprocess.call([gracedb,"download", gid ,"psd.xml.gz"])
psdasciidic=None
fhigh=None
if os.path.exists("psd.xml.gz"):
psdasciidic=get_xml_psds(os.path.realpath("./psd.xml.gz"),ifos,os.path.realpath('./PSDs'),end_time=None)
combine=np.loadtxt(psdasciidic[psdasciidic.keys()[0]])
......
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