Skip to content

Commit 487523f

Browse files
committed
Merge pull request #996 from blakedewey/master
Corrected Freesurfer SegStats
2 parents f7558b9 + 6da246d commit 487523f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Next release
88
* FIX: Utility interface test dir (https://github.com/nipy/nipype/pull/986)
99
* FIX: IPython engine directory reset after crash (https://github.com/nipy/nipype/pull/987)
1010
* ENH: Resting state fMRI example with NiPy realignment and no SPM (https://github.com/nipy/nipype/pull/992)
11+
* FIX: Corrected Freesurfer SegStats _list_outputs to avoid error if summary_file is
12+
undefined (issue #994)(https://https://github.com/nipy/nipype/pull/996)
1113

1214
Release 0.10.0 (October 10, 2014)
1315
============

nipype/interfaces/freesurfer/model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,9 @@ class SegStats(FSCommand):
635635

636636
def _list_outputs(self):
637637
outputs = self.output_spec().get()
638-
outputs['summary_file'] = os.path.abspath(self.inputs.summary_file)
639-
if not isdefined(outputs['summary_file']):
638+
if isdefined(self.inputs.summary_file):
639+
outputs['summary_file'] = os.path.abspath(self.inputs.summary_file)
640+
else:
640641
outputs['summary_file'] = os.path.join(os.getcwd(), 'summary.stats')
641642
suffices = dict(avgwf_txt_file='_avgwf.txt', avgwf_file='_avgwf.nii.gz',
642643
sf_avg_file='sfavg.txt')

0 commit comments

Comments
 (0)