Skip to content

Corrected Freesurfer SegStats #996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 24, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Next release
* FIX: Utility interface test dir (https://github.com/nipy/nipype/pull/986)
* FIX: IPython engine directory reset after crash (https://github.com/nipy/nipype/pull/987)
* ENH: Resting state fMRI example with NiPy realignment and no SPM (https://github.com/nipy/nipype/pull/992)
* FIX: Corrected Freesurfer SegStats _list_outputs to avoid error if summary_file is
undefined (issue #994)(https://https://github.com/nipy/nipype/pull/996)

Release 0.10.0 (October 10, 2014)
============
Expand Down
5 changes: 3 additions & 2 deletions nipype/interfaces/freesurfer/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,9 @@ class SegStats(FSCommand):

def _list_outputs(self):
outputs = self.output_spec().get()
outputs['summary_file'] = os.path.abspath(self.inputs.summary_file)
if not isdefined(outputs['summary_file']):
if isdefined(self.inputs.summary_file):
outputs['summary_file'] = os.path.abspath(self.inputs.summary_file)
else:
outputs['summary_file'] = os.path.join(os.getcwd(), 'summary.stats')
suffices = dict(avgwf_txt_file='_avgwf.txt', avgwf_file='_avgwf.nii.gz',
sf_avg_file='sfavg.txt')
Expand Down