Skip to content

Commit 775f1f9

Browse files
author
David Ellis
committed
FIX: Adds shutil to import for out_aseg function.
1 parent a2672c8 commit 775f1f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nipype/workflows/smri/freesurfer/autorecon3.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,9 @@ def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None,
614614
# aseg.mgz gets edited in place, so we'll copy and pass it to the
615615
# outputspec once aparc_2_aseg has completed
616616
def out_aseg(in_aparcaseg, in_aseg, out_file):
617-
import copy_file
618-
out_file = copy_file(in_aseg, out_file)
617+
import shutil
618+
out_file = os.path.abspath(out_file)
619+
shutil.copy(in_aseg, out_file)
619620
return out_file
620621
apas_2_aseg = pe.Node(Function(['in_aparcaseg', 'in_aseg', 'out_file'],
621622
['out_file'],

0 commit comments

Comments
 (0)