Commit 1dcca8d7 authored by Soichiro Morisaki's avatar Soichiro Morisaki

lalinference_pipe_utils.py: enable using specified psd.xml.gz

parent ff349763
......@@ -1476,7 +1476,11 @@ class LALInferencePipelineDAG(pipeline.CondorDAG):
node.ifos=ifos
prenode.ifos=ifos
gotdata=1
if self.config.has_option('input','gid'):
try:
use_gracedbpsd = (not self.config.getboolean('input','ignore-gracedb-psd'))
except:
use_gracedbpsd = True
if use_gracedbpsd:
if os.path.isfile(os.path.join(self.basepath,'psd.xml.gz')):
psdpath=os.path.join(self.basepath,'psd.xml.gz')
node.psds=get_xml_psds(psdpath,ifos,os.path.join(self.basepath,'PSDs'),end_time=None)
......
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