Skip to content

Commit 32d3dfa

Browse files
authored
Merge pull request #2817 from servoz/master
FIX: Order of SPM.NewSegment channel_info boolean tuple is (Field, Corrected)
2 parents ab0bba7 + d5137c3 commit 32d3dfa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nipype/interfaces/spm/preprocess.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ class NewSegmentInputSpec(SPMCommandInputSpec):
14871487
desc="""A tuple with the following fields:
14881488
- bias reguralisation (0-10)
14891489
- FWHM of Gaussian smoothness of bias
1490-
- which maps to save (Corrected, Field) - a tuple of two boolean values""",
1490+
- which maps to save (Field, Corrected) - a tuple of two boolean values""",
14911491
field='channel')
14921492
tissues = traits.List(
14931493
traits.Tuple(
@@ -1681,11 +1681,11 @@ def _list_outputs(self):
16811681

16821682
if isdefined(self.inputs.channel_info):
16831683
if self.inputs.channel_info[2][0]:
1684-
outputs['bias_corrected_images'].append(
1685-
os.path.join(pth, "m%s.nii" % (base)))
1686-
if self.inputs.channel_info[2][1]:
16871684
outputs['bias_field_images'].append(
16881685
os.path.join(pth, "BiasField_%s.nii" % (base)))
1686+
if self.inputs.channel_info[2][1]:
1687+
outputs['bias_corrected_images'].append(
1688+
os.path.join(pth, "m%s.nii" % (base)))
16891689
return outputs
16901690

16911691

0 commit comments

Comments
 (0)