Commit fe3b60b6 authored by John Douglas Veitch's avatar John Douglas Veitch
Browse files

lalinference_pipe_utils.py: Make web dir to store config.ini

Original: 5c142bd423a9ff9b6343cd29a7a5d25ba35ff409
parent 31d9c14e
......@@ -554,6 +554,10 @@ class LALInferencePipelineDAG(pipeline.CondorDAG):
conffilename=os.path.join(self.basepath,'config.ini')
with open(conffilename,'wb') as conffile:
self.config.write(conffile)
if self.config.has_option('paths','webdir'):
mkdirs(self.config.get('paths','webdir'))
with open(os.path.join(self.config.get('paths','webdir'),'config.ini'),'wb') as conffile:
self.config.write(conffile)
# Generate the DAG according to the config given
for event in self.events: self.add_full_analysis(event)
......@@ -828,9 +832,6 @@ class LALInferencePipelineDAG(pipeline.CondorDAG):
myifos=enginenodes[0].get_ifos()
# Merge the results together
pagedir=os.path.join(self.webdir,evstring,myifos)
# Write the config file to the results dir for easy review
with open(os.path.join(pagedir,'config.ini'),'wb') as conffile:
self.config.write(conffile)
#pagedir=os.path.join(self.basepath,evstring,myifos)
mkdirs(pagedir)
mergenode=MergeNSNode(self.merge_job,parents=enginenodes)
......
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