Maintenance will be performed on git.ligo.org, chat.ligo.org, and docs.ligo.org, starting at approximately 10am CDT Tuesday 20 August 2019. The maintenance is expected to take around an hour and here will be two short periods of downtime, one at the beginning of the maintenance and another at the end.

Commit 7cefc161 authored by Sudarshan Ghonge's avatar Sudarshan Ghonge

Megaplot injection fixes

parent 30f62edd
......@@ -208,7 +208,7 @@ def readbwb():
# -- If MDC, read SNR info
if mdc:
for ifo in ifoList:
snrFile = jobName+'post/injection_whitened_moments.dat.'+ifo
snrFile = jobName+'post/injection_whitened_moments_%s.dat'%(ifoNames[int(ifo)])
if not os.path.exists(snrFile):
sys.exit("\n {0} not found! \n".format(snrFile))
snrdata = open(snrFile, 'r')
......@@ -444,7 +444,6 @@ def plot_evidence(jobName, plotsDir):
err_sig_gl += err_sig_si
err_sig_gl = math.sqrt(err_sig_gl)
# -- Report to the user
print()
print(' log( E_signal / E_noise ) =', sig_noise)
print(' log( E_signal / E_glitch ) =', sig_gl)
# -- Plot the data point
......@@ -1770,7 +1769,7 @@ def make_homepage(htmlDir, plotsDir, tablesDir, model, ifoNames, snrList, bayesw
if mdc:
summary.write(' <h3>Matched Filter SNRs of Injections</h3>\n')
for ifo, snr in zip(ifoNames, snrList):
summary.write(' {0} injected with SNR {1:.1f}<br/>\n'.format(ifoNames[int(ifo)], snr))
summary.write(' {0} injected with SNR {1:.1f}<br/>\n'.format(ifo, snr))
summary.write(' <h3>Log Info</h3>\n')
summary.write(' <a href="./'+bayeswaverunfile+'">See full log file</a>\n')
summary.write(' <h3>Evidence for Signal</h3>\n')
......@@ -1833,7 +1832,7 @@ def make_index(htmlDir, plotsDir, tablesDir, model, gps, ifoList, ifoNames, snrL
if mdc:
index.write(' <h3>Matched Filter SNRs of Injections</h3>\n')
for ifo, snr in zip(ifoNames, snrList):
index.write(' {0} injected with SNR {1:.3f}<br/>\n'.format(ifoNames[int(ifo)], snr))
index.write(' {0} injected with SNR {1:.3f}<br/>\n'.format(ifo, snr))
index.write(' <h3>Log Info</h3>\n')
index.write(' <a href="./'+bayeswaverunfile+'">See full log file</a>\n')
index.write(' <h3>Evidence for Signal</h3>\n')
......
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