Skip to content

FIX: Order of SPM.NewSegment channel_info boolean tuple is (Field, Corrected) #2817

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 1 commit into from
Dec 14, 2018
Merged
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
8 changes: 4 additions & 4 deletions nipype/interfaces/spm/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ class NewSegmentInputSpec(SPMCommandInputSpec):
desc="""A tuple with the following fields:
- bias reguralisation (0-10)
- FWHM of Gaussian smoothness of bias
- which maps to save (Corrected, Field) - a tuple of two boolean values""",
- which maps to save (Field, Corrected) - a tuple of two boolean values""",
field='channel')
tissues = traits.List(
traits.Tuple(
Expand Down Expand Up @@ -1681,11 +1681,11 @@ def _list_outputs(self):

if isdefined(self.inputs.channel_info):
if self.inputs.channel_info[2][0]:
outputs['bias_corrected_images'].append(
os.path.join(pth, "m%s.nii" % (base)))
if self.inputs.channel_info[2][1]:
outputs['bias_field_images'].append(
os.path.join(pth, "BiasField_%s.nii" % (base)))
if self.inputs.channel_info[2][1]:
outputs['bias_corrected_images'].append(
os.path.join(pth, "m%s.nii" % (base)))
return outputs


Expand Down