Skip to content

Commit 786b209

Browse files
committed
fix example in KellyKapowski
1 parent 56d89f6 commit 786b209

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

nipype/interfaces/ants/segmentation.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,9 +1235,7 @@ class KellyKapowski(ANTSCommand):
12351235
>>> from nipype.interfaces.ants.segmentation import KellyKapowski
12361236
>>> kk = KellyKapowski()
12371237
>>> kk.inputs.dimension = 3
1238-
>>> kk.inputs.segmentation_image = "anat_hc_gm_wm.nii.gz"
1239-
>>> kk.inputs.gray_matter_prob_image = "anat_hc_gm.nii.gz"
1240-
>>> kk.inputs.white_matter_prob_image = "anat_hc_wm.nii.gz"
1238+
>>> kk.inputs.segmentation_image = "segmentation0.nii.gz"
12411239
>>> kk.inputs.convergence = "[45,0.0,10]"
12421240
>>> kk.inputs.gradient_step = 0.025
12431241
>>> kk.inputs.smoothing_variance = 1.0
@@ -1246,12 +1244,15 @@ class KellyKapowski(ANTSCommand):
12461244
>>> kk.inputs.number_integration_points = 10
12471245
>>> kk.inputs.thickness_prior_estimate = 10
12481246
>>> kk.cmdline # doctest: +ALLOW_UNICODE
1249-
'KellyKapowski --convergence "[45,0.0,10]"
1250-
--output "[anat_hc_gm_wm_cortical_thickness.nii.gz, anat_hc_gm_wm_warped_white_matter.nii.gz]"
1251-
--image-dimensionality 3 --gradient-step 0.025000 --gray-matter-probability-image "anat_hc_gm.nii.gz"
1252-
--number-of-integration-points 10 --segmentation-image "[anat_hc_gm_wm.nii.gz,2,3]" --smoothing-variance 1.000000
1253-
--smoothing-velocity-field-parameter 1.500000 --thickness-prior-estimate 10.000000
1254-
--white-matter-probability-image "anat_hc_wm.nii.gz"'
1247+
"KellyKapowski --convergence "[45,0.0,10]" \
1248+
--output "[segmentation0_cortical_thickness.nii.gz,segmentation0_warped_white_matter.nii.gz]" \
1249+
--image-dimensionality 3 --gradient-step 0.025000 \
1250+
--number-of-integration-points 10 \
1251+
--segmentation-image "[segmentation0.nii.gz,2,3]" \
1252+
--smoothing-variance 1.000000 \
1253+
--smoothing-velocity-field-parameter 1.500000 \
1254+
--thickness-prior-estimate 10.000000"
1255+
12551256
"""
12561257
_cmd = "KellyKapowski"
12571258
input_spec = KellyKapowskiInputSpec
@@ -1312,7 +1313,7 @@ def _format_arg(self, opt, spec, val):
13121313
if opt == "cortical_thickness":
13131314
ct = self._gen_filename("cortical_thickness")
13141315
wm = self._gen_filename("warped_white_matter")
1315-
newval = '[{}, {}]'.format(ct, wm)
1316+
newval = '[{},{}]'.format(ct, wm)
13161317
return spec.argstr % newval
13171318

13181319
return super(KellyKapowski, self)._format_arg(opt, spec, val)

0 commit comments

Comments
 (0)