Commit 8f861f49 authored by Leo Pound Singer's avatar Leo Pound Singer

Replace sngl_inspiral.get_end() with sngl_inspiral.end

Original: c3091616ee68b58d028e33ba7c8651c1b351be97
parent f7acd5fc
......@@ -395,7 +395,7 @@ for i_sim_inspiral in progress.iterate(range(n_injections), format='injection %d
for sngl_inspiral in sngl_inspirals])))
coinc_inspiral.set_ifos([sngl_inspiral.ifo
for sngl_inspiral in sngl_inspirals])
coinc_inspiral.set_end(glue.lal.LIGOTimeGPS(float(np.mean([float(sngl_inspiral.get_end())
coinc_inspiral.set_end(glue.lal.LIGOTimeGPS(float(np.mean([float(sngl_inspiral.end)
for sngl_inspiral in sngl_inspirals]))))
coinc_inspiral.false_alarm_rate = None
coinc_inspiral.combined_far = None
......
......@@ -142,11 +142,11 @@ if opts.psd_files: # read pycbc psds here
def reference_psd_for_sngl(sngl):
psd = psdseglistdict[sngl.ifo]
try:
psd = psd[psd.find(sngl.get_end())].psd
psd = psd[psd.find(sngl.end)].psd
except ValueError:
raise ValueError(
'No PSD found for detector {0} at GPS time {1}'.format(
sngl.ifo, sngl.get_end()))
sngl.ifo, sngl.end))
flow = psd.file.attrs['low_frequency_cutoff']
df = psd.attrs['delta_f']
......
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