Skip to content
Snippets Groups Projects
Commit 855436ff authored by David Verelst's avatar David Verelst
Browse files

also use jobname for pbs input file

parent 190513d9
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -206,7 +206,7 @@ def submit_pbs(walltime='00:59:59', queue='xpresq', py_env='wetb_py3', ...@@ -206,7 +206,7 @@ def submit_pbs(walltime='00:59:59', queue='xpresq', py_env='wetb_py3',
os.makedirs(pbs_out) os.makedirs(pbs_out)
# write the pbs_script # write the pbs_script
FILE = open('%s/%s.qsub-wrap' % (pbs_in, fname), 'w') FILE = open('%s/%s.qsub-wrap' % (pbs_in, jobname), 'w')
FILE.write(pbs_script) FILE.write(pbs_script)
FILE.close() FILE.close()
...@@ -214,7 +214,7 @@ def submit_pbs(walltime='00:59:59', queue='xpresq', py_env='wetb_py3', ...@@ -214,7 +214,7 @@ def submit_pbs(walltime='00:59:59', queue='xpresq', py_env='wetb_py3',
return pbs_script, [] return pbs_script, []
# and submit # and submit
cmd = 'qsub %s/%s.qsub-wrap' % (pbs_in, fname) cmd = 'qsub %s/%s.qsub-wrap' % (pbs_in, jobname)
print 'submitting to cluster as:' print 'submitting to cluster as:'
print cmd print cmd
p = sproc.Popen(cmd, stdout=sproc.PIPE, stderr=sproc.STDOUT, shell=True) p = sproc.Popen(cmd, stdout=sproc.PIPE, stderr=sproc.STDOUT, shell=True)
......
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