Commit b2d86844 authored by James Clark's avatar James Clark

Merge branch 'megaplot-injection-fix' into 'master'

Megaplot injection fixes

See merge request !63
parents 30f62edd 7cefc161
Pipeline #47493 passed with stages
in 3 minutes and 1 second
......@@ -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