Commit d3a490c9 authored by Ingrid Luijkx's avatar Ingrid Luijkx
Browse files

Updated the cartesius platform file to Python3

parent ef5de84c
......@@ -108,12 +108,12 @@ class CartesiusPlatform(Platform):
template += """#$ -hold_jid depends \n"""
# First replace from passed dictionary
for k, v in joboptions.items():
for k, v in list(joboptions.items()):
while k in template:
template = template.replace(k, v)
# Fill remaining values with std_options
for k, v in std_joboptions.items():
for k, v in list(std_joboptions.items()):
while k in template:
template = template.replace(k, v)
......@@ -132,9 +132,9 @@ class CartesiusPlatform(Platform):"A new task will be started (%s)" % cmd)
output = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
print 'output', output
print('output', output)
jobid = output.split()[-1]
print 'jobid', jobid
print('jobid', jobid)
cmd = ["sbatch", jobfile]"A new job will be submitted (%s)" % cmd)
Supports Markdown
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