Commit 6e4c91bf authored by John Douglas Veitch's avatar John Douglas Veitch
Browse files

Allow selection of events in lalinference_pipe

Original: 845cb5bffa2aaec578be1306d75901c68970d728
parent be022bd3
......@@ -300,6 +300,12 @@ class LALInferencePipelineDAG(pipeline.CondorDAG):
if sum([ 1 if self.config.has_option('input',name) else 0 for name in inputnames])!=1:
print 'Plese specify only one input file'
sys.exit(1)
if self.config.has_option('input','events'):
selected_events=ast.literal_eval(self.config.get('input','events'))
if selected_events=='all':
selected_events=None
else:
selected_events=None
if self.config.has_option('input','gps-start-time'):
gpsstart=self.config.getfloat('input','gps-start-time')
if self.config.has_option('input','gps-end-time'):
......@@ -340,7 +346,11 @@ class LALInferencePipelineDAG(pipeline.CondorDAG):
else:
print 'Reading non-slid triggers from pipedown not implemented yet'
sys.exit(1)
if(selected_events is not None):
used_events=[]
for i in selected_events:
used_events.append(events[i])
events=used_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