Commit 4de014bd authored by Vivien Raymond's avatar Vivien Raymond
Browse files

Merge branch 'lalinferencepipe_ifos_selection' into 'master'

Improve ifos selection criteria in lalinference

See merge request !694
parents baa4c2e7 674e071a
Pipeline #54402 passed with stages
in 72 minutes and 20 seconds
......@@ -1357,6 +1357,8 @@ class LALInferencePipelineDAG(pipeline.CondorDAG):
Will determine the data to be read and the output file.
Will use all IFOs known to the DAG, unless otherwise specified as a list of strings
if self.config.has_option('analysis','ifos'):
ifos = ast.literal_eval(self.config.get('analysis','ifos'))
if ifos is None and len(event.ifos)>0:
if ifos is None:
......@@ -1370,10 +1372,15 @@ class LALInferencePipelineDAG(pipeline.CondorDAG):
if self.config.has_option('input', 'minimum_realizations_number'):
psdstart = segstart - self.config.getint('input','padding') - \
self.config.getint('input', 'minimum_realizations_number') * seglen
psdstart = segstart
for ifo in ifos:
for seg in self.segments[ifo]:
if segstart >= seg.start() and segend <= seg.end():
if psdstart >= seg.start() and segend <= seg.end():
if len(ifos)==0:
......@@ -104,6 +104,10 @@ ignore-science-segments=True
# Uncomment the following line to ignore the psd.xml.gz file when analyzing a gracedb event.
# If the following number is specfied, only ifos which can provide more noise
# realizations for PSD estimation are selected.
# minimum_realizations_number=8
# Options to select events from SQLite databases (optional)
# Select combined false alarm rate in Hz
# min-cfar = 0
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