File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
nipype/interfaces/freesurfer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -843,8 +843,6 @@ class SegStatsReconAll(SegStats):
843843
844844 def _format_arg (self , name , spec , value ):
845845 if name == 'brainmask_file' :
846- if self .inputs .copy_inputs :
847- copy2subjdir (self , value , 'mri' )
848846 return spec .argstr % os .path .basename (value )
849847 return super (SegStatsReconAll , self )._format_arg (name , spec , value )
850848
@@ -873,6 +871,8 @@ def run(self, **inputs):
873871 os .path .join ('mri' , 'transforms' ),
874872 'talairach.xfm' )
875873 copy2subjdir (self , self .inputs .in_intensity , 'mri' )
874+ if isdefined (self .inputs .brainmask_file ):
875+ copy2subjdir (self , self .inputs .brainmask_file , 'mri' )
876876 return super (SegStatsReconAll , self ).run (** inputs )
877877
878878
You can’t perform that action at this time.
0 commit comments