Skip to content

Commit 6329f3e

Browse files
author
David Ellis
committed
DOC: Modifications to whitespace
1 parent c950444 commit 6329f3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/freesurfer/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)