Skip to content

Commit 55920fe

Browse files
authored
Merge pull request #2593 from yarikoptic/doc-enhs
DOCs: fix/improve descriptions for commands and interfaces
2 parents 4b576d8 + c6c9093 commit 55920fe

File tree

4 files changed

+117
-121
lines changed

4 files changed

+117
-121
lines changed

nipype/interfaces/ants/registration.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ class ANTSInputSpec(ANTSCommandInputSpec):
7070
traits.Int(),
7171
requires=['metric'],
7272
mandatory=True,
73-
desc='radius of the region (i.e. number of layers'
74-
' around a voxel point)'
73+
desc='radius of the region (i.e. number of layers around a voxel/pixel)'
7574
' that is used for computing cross correlation')
7675

7776
output_transform_prefix = Str(
@@ -126,8 +125,8 @@ class ANTSOutputSpec(TraitedSpec):
126125

127126

128127
class ANTS(ANTSCommand):
129-
"""
130-
128+
"""ANTS wrapper for registration of images
129+
(old, use Registration instead)
131130
132131
Examples
133132
--------
@@ -557,7 +556,8 @@ class RegistrationOutputSpec(TraitedSpec):
557556

558557

559558
class Registration(ANTSCommand):
560-
"""
559+
"""ANTs Registration command for registration of images
560+
561561
`antsRegistration <http://stnava.github.io/ANTs/>`_ registers a ``moving_image`` to a ``fixed_image``,
562562
using a predefined (sequence of) cost function(s) and transformation operations.
563563
The cost function is defined using one or more 'metrics', specifically
@@ -601,12 +601,12 @@ class Registration(ANTSCommand):
601601
Examples
602602
--------
603603
604-
Set up a Registation node with some default settings. This Node registers
604+
Set up a Registration node with some default settings. This Node registers
605605
'fixed1.nii' to 'moving1.nii' by first fitting a linear 'Affine' transformation, and
606606
then a non-linear 'SyN' transformation, both using the Mutual Information-cost
607607
metric.
608608
609-
The registration is initailized by first applying the (linear) transform
609+
The registration is initialized by first applying the (linear) transform
610610
trans.mat.
611611
612612
>>> import copy, pprint

nipype/interfaces/ants/resampling.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -493,15 +493,15 @@ class ApplyTransformsToPointsInputSpec(ANTSCommandInputSpec):
493493
argstr='--input %s',
494494
mandatory=True,
495495
desc=
496-
("Currently, the only input supported is a csv file with "
497-
"columns including x,y (2D), x,y,z (3D) or x,y,z,t,label (4D) column headers."
498-
"The points should be defined in physical space."
499-
"If in doubt how to convert coordinates from your files to the space"
500-
"required by antsApplyTransformsToPoints try creating/drawing a simple"
501-
"label volume with only one voxel set to 1 and all others set to 0."
502-
"Write down the voxel coordinates. Then use ImageMaths LabelStats to find"
503-
"out what coordinates for this voxel antsApplyTransformsToPoints is"
504-
"expecting."),
496+
("Currently, the only input supported is a csv file with"
497+
" columns including x,y (2D), x,y,z (3D) or x,y,z,t,label (4D) column headers."
498+
" The points should be defined in physical space."
499+
" If in doubt how to convert coordinates from your files to the space"
500+
" required by antsApplyTransformsToPoints try creating/drawing a simple"
501+
" label volume with only one voxel set to 1 and all others set to 0."
502+
" Write down the voxel coordinates. Then use ImageMaths LabelStats to find"
503+
" out what coordinates for this voxel antsApplyTransformsToPoints is"
504+
" expecting."),
505505
exists=True)
506506
output_file = traits.Str(
507507
argstr='--output %s',

0 commit comments

Comments
 (0)