Skip to content

Commit 0bc029c

Browse files
committed
To allow multiple images to be processed in parallel, in the mindboggle() function in mindboggle123 set the working directory to be the current working directory.
1 parent 989fe4f commit 0bc029c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mindboggle/mindboggle123

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ def mindboggle(subjectid, fsdir, antsdir, antsseg, out, args, num_threads=1):
219219
DATA = os.path.join(fsdir, subjectid)
220220
ants = os.path.join(antsdir, subjectid, antsseg)
221221

222-
all_args = ' '.join([DATA, '--out', out, '--ants', ants, args])
222+
all_args = ' '.join([DATA, '--out', out, '--ants', ants,
223+
'--workdir', os.getcwd(), args])
223224

224225
if num_threads > 1:
225226
all_args += ' --plugin MultiProc --plugin_args "dict(n_procs={0})"'.\

0 commit comments

Comments
 (0)