Commit 674e071a authored by Soichiro Morisaki's avatar Soichiro Morisaki
Browse files

lalinference_pipe_utils.py and lalinference_pipe_example.ini: add an option...

lalinference_pipe_utils.py and lalinference_pipe_example.ini: add an option "minimum_realizations_number"

If that number is specfied, only ifos which can provide more noise realizations for PSD estimation are used for PE.
parent bd681cab
......@@ -1372,10 +1372,15 @@ class LALInferencePipelineDAG(pipeline.CondorDAG):
seglen=event.duration
segstart=end_time+2-seglen
segend=segstart+seglen
if self.config.has_option('input', 'minimum_realizations_number'):
psdstart = segstart - self.config.getint('input','padding') - \
self.config.getint('input', 'minimum_realizations_number') * seglen
else:
psdstart = segstart
myifos=set([])
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():
myifos.add(ifo)
ifos=myifos
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.
#ignore-gracedb-psd=True
# 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