Skip to content

Commit a89ef0d

Browse files
committed
Update legacy.py - buildtemplateparallel.sh
The value of 'j' has to be changed into a string, otherwise you'll end up with "TypeError: cannot concatenate 'str' and 'int' objects" and the command can't be passed on to the console.
1 parent 2cfa242 commit a89ef0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/ants/legacy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class buildtemplateparallel(ANTSCommand):
205205
def _format_arg(self, opt, spec, val):
206206
if opt == 'num_cores':
207207
if self.inputs.parallelization == 2:
208-
return '-j ' + val
208+
return '-j ' + str(val)
209209
else:
210210
return ''
211211
if opt == 'in_files':

0 commit comments

Comments
 (0)