Commit 96ea2308 authored by Vivien Raymond's avatar Vivien Raymond

Merge branch 'lalinferencepipe_python3_fix' into 'master'

lalinference_pipe_utils.py: minor python3 fixes

See merge request lscsoft/lalsuite!676
parents 2a026af5 cc0fae00
Pipeline #50613 passed with stages
in 159 minutes and 16 seconds
......@@ -392,7 +392,7 @@ def get_timeslides_pipedown(database_connection, dumpfile=None, gpsstart=None, g
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]
seg=list(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))
......@@ -1069,9 +1069,9 @@ class LALInferencePipelineDAG(pipeline.CondorDAG):
used_events.append(e)
events=used_events
if gpsstart is not None:
events = filter(lambda e: not e.trig_time<gpsstart, events)
events = list(filter(lambda e: not e.trig_time<gpsstart, events))
if gpsend is not None:
events = filter(lambda e: not e.trig_time>gpsend, events)
events = list(filter(lambda e: not e.trig_time>gpsend, events))
return events
def add_full_analysis_lalinferencenest(self,event):
......
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