Commit 7d3803c3 authored by Soichiro Morisaki's avatar Soichiro Morisaki

lalinference_pipe_utils.py: allow using psd.xml.gz only for distance max...

lalinference_pipe_utils.py: allow using psd.xml.gz only for distance max calculation in runs without seglen being specified
parent 5ca36408
......@@ -905,7 +905,11 @@ class LALInferencePipelineDAG(pipeline.CondorDAG):
psdlength = 32*seglen
else:
seglen = max(e.duration for e in self.events)
if os.path.isfile(os.path.join(self.basepath,'psd.xml.gz')) or self.config.has_option('condor','bayesline') or self.config.has_option('condor','bayeswave'):
try:
use_gracedbpsd = (not self.config.getboolean('input','ignore-gracedb-psd'))
except:
use_gracedbpsd = True
if (use_gracedbpsd and os.path.isfile(os.path.join(self.basepath,'psd.xml.gz'))) or self.config.has_option('condor','bayesline') or self.config.has_option('condor','bayeswave'):
psdlength = 0
padding = 0
self.config.set('input','padding',str(padding))
......
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