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 merge requests found
import copy
import os
import re
import tempfile
from configargparse import DefaultConfigFileParser
......@@ -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
fp, dagconfigpath = tempfile.mkstemp(
prefix="pipeline_config", suffix=".ini", text=True
)
with os.fdopen(fp, "w") as cfp:
self.cf.write(cfp)
config["cwinpy_heterodyne_pipeline_config_file"] = dagconfigpath
dagconfigfile = os.path.join(configlocation, "pipeline_config.ini")
if not os.path.isfile(dagconfigfile):
with open(dagconfigfile, "w") as fp:
self.cf.write(fp)
config["cwinpy_heterodyne_pipeline_config_file"] = dagconfigfile
if transfer_files == "YES":
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