Skip to content

Commit 258d772

Browse files
committed
Fix dstrings in preproc, no class descptrs tho (95%)
1 parent 37c5296 commit 258d772

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,9 @@ class SegmentInputSpec(SPMCommandInputSpec):
732732
Modulated + Unmodulated Normalised: [True,True,False]""")
733733
wm_output_type = traits.List(traits.Bool(), minlen=3, maxlen=3,
734734
field='output.WM',
735-
desc="""Options to produce white matter images: c2*.img, wc2*.img and mwc2*.img.
735+
desc="""
736+
Options to produce white matter images: \
737+
c2*.img, wc2*.img and mwc2*.img.
736738
None: [False,False,False],
737739
Native Space: [False,False,True],
738740
Unmodulated Normalised: [False,True,False],
@@ -741,8 +743,10 @@ class SegmentInputSpec(SPMCommandInputSpec):
741743
Native + Modulated Normalised: [True,False,True],
742744
Native + Modulated + Unmodulated: [True,True,True],
743745
Modulated + Unmodulated Normalised: [True,True,False]""")
744-
csf_output_type = traits.List(traits.Bool(), minlen=3, maxlen=3, field='output.CSF',
745-
desc="""Options to produce CSF images: c3*.img, wc3*.img and mwc3*.img.
746+
csf_output_type = traits.List(traits.Bool(), minlen=3, maxlen=3,
747+
field='output.CSF',
748+
desc="""
749+
Options to produce CSF images: c3*.img, wc3*.img and mwc3*.img.
746750
None: [False,False,False],
747751
Native Space: [False,False,True],
748752
Unmodulated Normalised: [False,True,False],
@@ -891,7 +895,8 @@ class NewSegmentInputSpec(SPMCommandInputSpec):
891895
desc="""A tuple with the following fields:
892896
- bias reguralisation (0-10)
893897
- FWHM of Gaussian smoothness of bias
894-
- which maps to save (Corrected, Field) - a tuple of two boolean values""",
898+
- which maps to save (Corrected, Field) - \
899+
a tuple of two boolean values""",
895900
field='channel')
896901
tissues = traits.List(
897902
traits.Tuple(traits.Tuple(File(exists=True), traits.Int()),
@@ -900,8 +905,10 @@ class NewSegmentInputSpec(SPMCommandInputSpec):
900905
desc="""A list of tuples (one per tissue) with the following fields:
901906
- tissue probability map (4D), 1-based index to frame
902907
- number of gaussians
903-
- which maps to save [Native, DARTEL] - a tuple of two boolean values
904-
- which maps to save [Unmodulated, Modulated] - a tuple of two boolean values""",
908+
- which maps to save [Native, DARTEL] - \
909+
a tuple of two boolean values
910+
- which maps to save [Unmodulated, Modulated] - \
911+
a tuple of two boolean values""",
905912
field='tissue')
906913
affine_regularization = traits.Enum('mni', 'eastern', 'subj', 'none',
907914
field='warp.affreg',
@@ -1174,7 +1181,8 @@ class DARTELInputSpec(SPMCommandInputSpec):
11741181
optimization_parameters = traits.Tuple(traits.Float, traits.Range(1, 8),
11751182
traits.Range(1, 8),
11761183
field='warp.settings.optim',
1177-
desc="""Optimization settings a tuple
1184+
desc="""
1185+
Optimization settings a tuple
11781186
- LM regularization
11791187
- cycles of multigrid solver
11801188
- relaxation iterations
@@ -1679,12 +1687,15 @@ def _list_outputs(self):
16791687
# normalized space
16801688
if getattr(self.inputs, '%s_normalized' % tis):
16811689
outputs['normalized_class_images'][i].append(
1682-
os.path.join(pth, "w%sp%d%s.nii" % (dartel_px, i + 1, base)))
1690+
os.path.join(pth,
1691+
"w%sp%d%s.nii" % (dartel_px,
1692+
i + 1, base)))
16831693

16841694
if getattr(self.inputs, '%s_modulated_normalized' % tis) == 1:
16851695
outputs['modulated_class_images'][i].append(os.path.join(
16861696
pth, "mw%sp%d%s.nii" % (dartel_px, i + 1, base)))
1687-
elif getattr(self.inputs, '%s_modulated_normalized' % tis) == 2:
1697+
elif getattr(self.inputs,
1698+
'%s_modulated_normalized' % tis) == 2:
16881699
outputs['normalized_class_images'][i].append(os.path.join(
16891700
pth, "m0w%sp%d%s.nii" % (dartel_px, i + 1, base)))
16901701

0 commit comments

Comments
 (0)