Skip to content

Commit 44f1e29

Browse files
author
David Ellis
committed
FIX: Imports os for out_aseg function.
1 parent 775f1f9 commit 44f1e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/workflows/smri/freesurfer/autorecon3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from .ba_maps import create_ba_maps_wf
77
from .utils import createsrcsubj
88
from nipype.interfaces.io import DataGrabber
9-
from .utils import copy_file
109

1110
def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None,
1211
th3=True, exvivo=True, entorhinal=True, fsvernum=5.3):
@@ -615,6 +614,7 @@ def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None,
615614
# outputspec once aparc_2_aseg has completed
616615
def out_aseg(in_aparcaseg, in_aseg, out_file):
617616
import shutil
617+
import os
618618
out_file = os.path.abspath(out_file)
619619
shutil.copy(in_aseg, out_file)
620620
return out_file

0 commit comments

Comments
 (0)