Skip to content

Commit b68ee6d

Browse files
committed
fixed whitespace in the dependencies
1 parent 1db8ee6 commit b68ee6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/pipeline/plugins/slurmgraph.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def make_job_name(jobnumber, nodeslist):
131131
if not self._dont_resubmit_completed_jobs or cache_doneness_per_node[jobid] == False:
132132
values += "${{{0}}}:".format(make_job_name(jobid, nodes))
133133
if values != ' ': # i.e. if some jobs were added to dependency list
134-
values = values.rstrip(',')
134+
values = values.rstrip(':')
135+
values = values.rstrip(' ')
135136
deps = '--dependency=afterok:%s' % values
136137
jobname = make_job_name(idx, nodes)
137138
# Do not use default output locations if they are set in self._sbatch_args

0 commit comments

Comments
 (0)