Commit cfafc67c authored by John Douglas Veitch's avatar John Douglas Veitch
Browse files

Check coinc end time not sngl end time when filtering timeslides

Original: 2286045ed2ce266c69a5d0131d9ed278f2728794
parent 96005598
......@@ -138,9 +138,9 @@ def get_zerolag_pipedown(database_connection, dumpfile=None, gpsstart=None, gpse
WHERE coinc_event.time_slide_id=='time_slide:time_slide_id:10049'\
"
if gpsstart is not None:
get_coincs=get_coincs+' and sngl_inspiral.end_time+sngl_inspiral.end_time_ns*1.0e-9 > %f'%(gpsstart)
get_coincs=get_coincs+' and coinc_inspiral.end_time+coinc_inspiral.end_time_ns*1.0e-9 > %f'%(gpsstart)
if gpsend is not None:
get_coincs=get_coincs+' and sngl_inspiral.end_time+sngl_inspiral.end_time_ns*1.0e-9 < %f'%(gpsend)
get_coincs=get_coincs+' and coinc_inspiral.end_time+coinc_inspiral.end_time_ns*1.0e-9 < %f'%(gpsend)
if max_cfar !=-1:
get_coincs=get_coincs+' and coinc_inspiral.combined_far < %f'%(max_cfar)
db_out=database_connection.cursor().execute(get_coincs)
......@@ -186,9 +186,9 @@ def get_timeslides_pipedown(database_connection, dumpfile=None, gpsstart=None, g
join coinc_inspiral on (coinc_inspiral.coinc_event_id==coinc_event.coinc_event_id) where coinc_event.time_slide_id!='time_slide:time_slide_id:10049'"
joinstr = ' and '
if gpsstart is not None:
get_coincs=get_coincs+ joinstr + ' sngl_inspiral.end_time+sngl_inspiral.end_time_ns*1e-9 > %f'%(gpsstart)
get_coincs=get_coincs+ joinstr + ' coinc_inspiral.end_time+coinc_inspiral.end_time_ns*1e-9 > %f'%(gpsstart)
if gpsend is not None:
get_coincs=get_coincs+ joinstr+' sngl_inspiral.end_time+sngl_inspiral.end_time_ns*1e-9 <%f'%(gpsend)
get_coincs=get_coincs+ joinstr+' coinc_inspiral.end_time+coinc_inspiral.end_time_ns*1e-9 <%f'%(gpsend)
if max_cfar!=-1:
get_coincs=get_coincs+joinstr+' coinc_inspiral.combined_far < %f'%(max_cfar)
db_out=database_connection.cursor().execute(get_coincs)
......
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