From d3a490c947b677e0e79298ecf49e95bd57d921b2 Mon Sep 17 00:00:00 2001 From: "ingrid.vanderlaan@wur.nl" Date: Tue, 17 Dec 2019 16:13:20 +0100 Subject: [PATCH] Updated the cartesius platform file to Python3 --- da/platform/cartesius.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/da/platform/cartesius.py b/da/platform/cartesius.py index b1daa0a..9573460 100755 --- a/da/platform/cartesius.py +++ b/da/platform/cartesius.py @@ -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): logging.info("A new task will be started (%s)" % cmd) output = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0] logging.info(output) - print 'output', output + print('output', output) jobid = output.split()[-1] - print 'jobid', jobid + print('jobid', jobid) else: cmd = ["sbatch", jobfile] logging.info("A new job will be submitted (%s)" % cmd) -- GitLab