Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CW Inference in Python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charlie Hoy
CW Inference in Python
Commits
03fb9df2
Commit
03fb9df2
authored
1 year ago
by
Matthew David Pitkin
Browse files
Options
Downloads
Patches
Plain Diff
hetnodes.py: no longer output the pipeline configuration to a temporary file
parent
96d62194
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cwinpy/condor/hetnodes.py
+7
-8
7 additions, 8 deletions
cwinpy/condor/hetnodes.py
with
7 additions
and
8 deletions
cwinpy/condor/hetnodes.py
+
7
−
8
View file @
03fb9df2
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
,
dagconfig
path
=
tempfile
.
mkstemp
(
dagconfig
file
=
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
"
]
=
dagconfig
path
config
[
"
cwinpy_heterodyne_pipeline_config_file
"
]
=
dagconfig
file
if
transfer_files
==
"
YES
"
:
if
transfer_files
==
"
YES
"
:
transfer_input
=
[]
transfer_input
=
[]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment