File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
nipype/interfaces/freesurfer Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ Next release
8
8
* FIX: Utility interface test dir (https://github.com/nipy/nipype/pull/986)
9
9
* FIX: IPython engine directory reset after crash (https://github.com/nipy/nipype/pull/987)
10
10
* 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)
11
13
12
14
Release 0.10.0 (October 10, 2014)
13
15
============
Original file line number Diff line number Diff line change @@ -635,8 +635,9 @@ class SegStats(FSCommand):
635
635
636
636
def _list_outputs (self ):
637
637
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 :
640
641
outputs ['summary_file' ] = os .path .join (os .getcwd (), 'summary.stats' )
641
642
suffices = dict (avgwf_txt_file = '_avgwf.txt' , avgwf_file = '_avgwf.nii.gz' ,
642
643
sf_avg_file = 'sfavg.txt' )
You can’t perform that action at this time.
0 commit comments