Skip to content

Commit 035ac91

Browse files
committed
FIX: Properly mount local templates
1 parent 6620a12 commit 035ac91

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

wrapper/fmriprep_docker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,10 @@ def main():
427427
spaces = []
428428
for space in opts.output_spaces:
429429
if space.split(':')[0] not in (TF_TEMPLATES + NONSTANDARD_REFERENCES):
430-
target = '/imports/' + os.path.basename(space)
430+
tpl = os.path.basename(space)
431+
target = '/home/fmriprep/.cache/templateflow/' + tpl
431432
command.extend(['-v', ':'.join((os.path.abspath(space), target, 'ro'))])
432-
spaces.append(target)
433+
spaces.append(tpl[4:])
433434
else:
434435
spaces.append(space)
435436
unknown_args.extend(['--output-spaces'] + spaces)

0 commit comments

Comments
 (0)