Skip to content

Commit 36242c6

Browse files
oestebaneffigies
andauthored
Apply suggestions from code review
Co-Authored-By: Chris Markiewicz <[email protected]>
1 parent 4c4c00c commit 36242c6

File tree

9 files changed

+19
-18
lines changed

9 files changed

+19
-18
lines changed

doc/interfaces.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Nipype provides some *in-house* interfaces to help with workflow
2020
management tasks, basic image manipulations, and filesystem/storage
2121
interfaces:
2222

23-
* `"Algorithms" <api/generated/nipype.algorithms.html>`__
23+
* `Algorithms <api/generated/nipype.algorithms.html>`__
2424
* `Image manipulation <api/generated/nipype.interfaces.image.html>`__
2525
* `I/O Operations <api/generated/nipype.interfaces.io.html>`__
2626
* `Self-reporting interfaces <api/generated/nipype.interfaces.mixins.html>`__
@@ -127,4 +127,4 @@ Index of Interfaces
127127
:maxdepth: 3
128128

129129
api/generated/nipype.algorithms
130-
api/generated/nipype.interfaces
130+
api/generated/nipype.interfaces

examples/fmri_spm_auditory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def makelist(item):
326326
pipeline. Thus for this pipeline there will be subject specific
327327
sub-directories.
328328
329-
The :func:`nipype.pipeline.engine.Pipeline.connect` function creates the
329+
The :func:`nipype.pipeline.engine.Workflow.connect` function creates the
330330
links between the processes, i.e., how data should flow in and out of
331331
the processing nodes.
332332
"""

nipype/algorithms/modelgen.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def spm_hrf(RT, P=None, fMRI_T=16):
5454
python implementation of spm_hrf
5555
5656
See ``spm_hrf`` for implementation details::
57+
5758
% RT - scan repeat time
5859
% p - parameters of the response function (two gamma
5960
% functions)

nipype/interfaces/base/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class BaseInterface(Interface):
143143
144144
Attributes
145145
----------
146-
input_spec: HasTraits
146+
input_spec: :obj:`nipype.interfaces.base.spec.TraitedSpec`
147147
points to the traited class for the inputs
148148
output_spec: HasTraits
149149
points to the traited class for the outputs
@@ -326,7 +326,7 @@ def run(self, cwd=None, ignore_exception=None, **inputs):
326326
327327
Returns
328328
-------
329-
results : :obj:`InterfaceResult`
329+
results : :obj:`nipype.interfaces.base.core.InterfaceResult`
330330
A copy of the instance that was executed, provenance information and,
331331
if successful, results
332332

nipype/interfaces/base/support.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def __str__(self):
3333

3434
class Bunch(object):
3535
"""
36-
Dictionary-like class that provides attribute-style access to it's items.
36+
Dictionary-like class that provides attribute-style access to its items.
3737
38-
A ``Bunch`` is a simple container that stores it's items as class
38+
A ``Bunch`` is a simple container that stores its items as class
3939
attributes [1]_. Internally all items are stored in a dictionary and
4040
the class exposes several of the dictionary methods.
4141

nipype/interfaces/cmtk/cmtk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,16 @@ def create_endpoints_array(fib, voxelSize):
137137
138138
Parameters
139139
----------
140-
fib :
140+
fib : array-like
141141
the fibers data
142-
voxelSize:
142+
voxelSize : tuple
143143
3-tuple containing the voxel size of the ROI image
144144
145145
Returns
146146
-------
147-
endpoints : matrix of size [#fibers, 2, 3]
147+
endpoints : ndarray of size [#fibers, 2, 3]
148148
containing for each fiber the ndex of its first and last point in the voxelSize volume
149-
endpointsmm : matrix of size [#fibers, 2, 3]
149+
endpointsmm : ndarray of size [#fibers, 2, 3]
150150
endpoints in milimeter coordinates
151151
152152
"""

nipype/interfaces/cmtk/parcellation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -665,18 +665,18 @@ def extract(Z, shape, position, fill):
665665
666666
Parameters
667667
----------
668-
Z :
668+
Z : array-like
669669
the original data
670-
shape :
670+
shape : tuple
671671
tuple containing neighbourhood dimensions
672672
position :
673673
tuple containing central point indexes
674-
fill :
674+
fill : float
675675
value for the padding of Z
676676
677677
Returns
678678
-------
679-
R :
679+
R : ndarray
680680
the neighbourhood of the specified point in Z
681681
682682
"""

nipype/interfaces/diffusion_toolkit/dti.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ class DTITrackerInputSpec(CommandLineInputSpec):
190190
desc="""\
191191
Tracking algorithm.
192192
193-
* fact -> use FACT method for tracking. this is the default method.
194-
* rk2 -> use 2nd order runge-kutta method for tracking.
193+
* fact -> use FACT method for tracking. This is the default method.
194+
* rk2 -> use 2nd order Runge-Kutta method for tracking.
195195
* tl -> use tensorline method for tracking.
196196
* sl -> use interpolated streamline method with fixed step-length
197197

nipype/interfaces/diffusion_toolkit/odf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class ODFTrackerInputSpec(CommandLineInputSpec):
264264
runge_kutta2 = traits.Bool(
265265
argstr="-rk2",
266266
desc="""\
267-
use 2nd order runge-kutta method for tracking.
267+
use 2nd order Runge-Kutta method for tracking.
268268
default tracking method is non-interpolate streamline""",
269269
)
270270
step_length = traits.Float(

0 commit comments

Comments
 (0)