Skip to content

Commit

Permalink
Fix typos in Slurm file
Browse files Browse the repository at this point in the history
  • Loading branch information
tikk3r committed Nov 28, 2019
1 parent 9bb7c53 commit aeba254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GRID_LRT/application/submit.py
Expand Up @@ -379,7 +379,7 @@ def build_slurm_file(self, database=None):
raise IOError("Launch file doesn't exist! "+self.launch_file)
slurmfile = '#!/usr/bin/env bash\n'
if self.wholenodes:
slurmfile += '#SBATCH --exclusive --nodes=1 --ntasks 1--cpus-per-task={ncpu:d} -p {queue:s} --array 1-{njobs:d}%{concurrent:d} --output=spiderjob-%A_%a.out --error=spiderjob-%A_%a.err\n'
slurmfile += '#SBATCH --exclusive --nodes=1 --ntasks 1 --cpus-per-task={ncpu:d} -p {queue:s} --array 1-{njobs:d}%{concurrent:d} --output=spiderjob-%A_%a.out --error=spiderjob-%A_%a.err\n'
else:
slurmfile += '#SBATCH --nodes=1 --ntasks 1 --cpus-per-task={ncpu:d} -p {queue:s} --array 1-{njobs:d}%{concurrent:d} --output=spiderjob-%A_%a.out --error=spiderjob-%A_%a.err\n'
slurmfile += """
Expand All @@ -391,7 +391,7 @@ def build_slurm_file(self, database=None):
{launcher:s} {db:s} {usr:s} {pw:s} {tt:s}
"""
slurmfile = slurmfile.format(ncpu=int(self.ncpu),
queueu=str(self.queue),
queue=str(self.queue),
njobs=self.numjobs,
concurrent=self.parameter_step,
launcher=str(self.launch_file),
Expand Down

0 comments on commit aeba254

Please sign in to comment.