Skip to content
Snippets Groups Projects
Commit 03fb9df2 authored by Matthew David Pitkin's avatar Matthew David Pitkin
Browse files

hetnodes.py: no longer output the pipeline configuration to a temporary file

parent 96d62194
No related branches found
No related tags found
No related merge requests found
import copy import copy
import os import os
import re import re
import tempfile
from configargparse import DefaultConfigFileParser from configargparse import DefaultConfigFileParser
...@@ -200,14 +199,14 @@ class HeterodyneLayer(CondorLayer): ...@@ -200,14 +199,14 @@ class HeterodyneLayer(CondorLayer):
), ),
) )
# output the DAG configuration file to a temporary file, which will # output the DAG configuration to a file that will
# later be read and stored in the HeterodynedData objects # later be read and stored in the HeterodynedData objects
fp, dagconfigpath = tempfile.mkstemp( dagconfigfile = os.path.join(configlocation, "pipeline_config.ini")
prefix="pipeline_config", suffix=".ini", text=True if not os.path.isfile(dagconfigfile):
) with open(dagconfigfile, "w") as fp:
with os.fdopen(fp, "w") as cfp: self.cf.write(fp)
self.cf.write(cfp)
config["cwinpy_heterodyne_pipeline_config_file"] = dagconfigpath config["cwinpy_heterodyne_pipeline_config_file"] = dagconfigfile
if transfer_files == "YES": if transfer_files == "YES":
transfer_input = [] transfer_input = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment