Commit 90d0aefb authored by John Douglas Veitch's avatar John Douglas Veitch
Browse files

Fix more indentation errors

Original: a4e94c943f2b8ee20bb18a03ce4ef6d8e3e605b1
parent 649ed76d
......@@ -192,18 +192,18 @@ def get_timeslides_pipedown(database_connection, dumpfile=None, gpsstart=None, g
if max_cfar!=-1:
get_coincs=get_coincs+joinstr+' coinc_inspiral.combined_far < %f'%(max_cfar)
db_out=database_connection.cursor().execute(get_coincs)
from pylal import SnglInspiralUtils
extra={}
from pylal import SnglInspiralUtils
extra={}
for (sngl_time, slide, ifo, coinc_id, snr, chisq, cfar) in db_out:
coinc_id=int(coinc_id.split(":")[-1])
seg=filter(lambda seg:sngl_time in seg,seglist)[0]
slid_time = SnglInspiralUtils.slideTimeOnRing(sngl_time,slide,seg)
if not coinc_id in output.keys():
output[coinc_id]=Event(trig_time=slid_time,timeslide_dict={},event_id=int(coinc_id))
extra[coinc_id]={}
output[coinc_id].timeslides[ifo]=slid_time-sngl_time
output[coinc_id].ifos.append(ifo)
extra[coinc_id][ifo]={'snr':snr,'chisq':chisq,'cfar':cfar}
coinc_id=int(coinc_id.split(":")[-1])
seg=filter(lambda seg:sngl_time in seg,seglist)[0]
slid_time = SnglInspiralUtils.slideTimeOnRing(sngl_time,slide,seg)
if not coinc_id in output.keys():
output[coinc_id]=Event(trig_time=slid_time,timeslide_dict={},event_id=int(coinc_id))
extra[coinc_id]={}
output[coinc_id].timeslides[ifo]=slid_time-sngl_time
output[coinc_id].ifos.append(ifo)
extra[coinc_id][ifo]={'snr':snr,'chisq':chisq,'cfar':cfar}
if dumpfile is not None:
fh=open(dumpfile,'w')
for co in output.keys():
......
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