Skip to content
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