Skip to content

Commit 8b5dab1

Browse files
oestebaneffigies
andcommitted
Apply suggestions from code review
Co-Authored-By: Chris Markiewicz <[email protected]>
1 parent be900d1 commit 8b5dab1

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

examples/fmri_spm_auditory.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def get_vox_dims(volume):
148148
l1analysis = pe.Workflow(name='analysis')
149149

150150
"""Generate SPM-specific design information using
151-
:ref:`nipype.algorithms.modelgen.SpecifyModel`.
151+
:ref:`nipype.algorithms.modelgen.SpecifySPMModel`.
152152
"""
153153

154154
modelspec = pe.Node(interface=model.SpecifySPMModel(), name="modelspec")
@@ -273,7 +273,7 @@ def makelist(item):
273273
-----------------------------------------
274274
Here we create a structure that provides information
275275
about the experimental paradigm. This is used by the
276-
:ref:`nipype.algorithms.modelgen.SpecifyModel`
276+
:ref:`nipype.algorithms.modelgen.SpecifySPMModel`
277277
to create the information necessary to generate an SPM design matrix.
278278
"""
279279

@@ -327,7 +327,7 @@ def makelist(item):
327327
pipeline. Thus for this pipeline there will be subject specific
328328
sub-directories.
329329
330-
The :func:`nipype.pipeline.engine.Workflow.connect` function creates the
330+
The :func:`~nipype.pipeline.engine.workflows.Workflow.connect` method creates the
331331
links between the processes, i.e., how data should flow in and out of
332332
the processing nodes.
333333
"""
@@ -391,8 +391,8 @@ def getstripdir(subject_id):
391391
The code discussed above sets up all the necessary data structures
392392
with appropriate parameters and the connectivity between the
393393
processes, but does not generate any output. To actually run the
394-
analysis on the data the :func:`nipype.pipeline.engine.workflows.Workflow.run`
395-
function needs to be called.
394+
analysis on the data the :func:`~nipype.pipeline.engine.workflows.Workflow.run`
395+
method needs to be called.
396396
"""
397397

398398
if __name__ == '__main__':

nipype/algorithms/confounds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,10 +654,10 @@ def _run_interface(self, runtime):
654654
else:
655655
components_criterion = 6
656656
IFLOGGER.warning(
657-
"``num_components`` and ``variance_threshold`` are "
657+
"`num_components` and `variance_threshold` are "
658658
"not defined. Setting number of components to 6 "
659659
"for backward compatibility. Please set either "
660-
"``num_components`` or ``variance_threshold``, as "
660+
"`num_components` or `variance_threshold`, as "
661661
"this feature may be deprecated in the future."
662662
)
663663

nipype/interfaces/afni/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3145,7 +3145,7 @@ class TSmoothInputSpec(AFNICommandInputSpec):
31453145
argstr="-osf",
31463146
)
31473147
lin3 = traits.Int(
3148-
desc=r"3 point linear filter: :math:`0.5\,(1-m)\,a + m\,b + 0.5\,(1-m)\,c"
3148+
desc=r"3 point linear filter: :math:`0.5\,(1-m)\,a + m\,b + 0.5\,(1-m)\,c`"
31493149
"Here, 'm' is a number strictly between 0 and 1.",
31503150
argstr="-3lin %d",
31513151
)

nipype/interfaces/base/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class BaseInterface(Interface):
145145
----------
146146
input_spec: :obj:`nipype.interfaces.base.specs.TraitedSpec`
147147
points to the traited class for the inputs
148-
output_spec: HasTraits
148+
output_spec: :obj:`nipype.interfaces.base.specs.TraitedSpec`
149149
points to the traited class for the outputs
150150
_redirect_x: bool
151151
should be set to ``True`` when the interface requires

nipype/interfaces/cmtk/cmtk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ def create_endpoints_array(fib, voxelSize):
145145
Returns
146146
-------
147147
endpoints : ndarray of size [#fibers, 2, 3]
148-
containing for each fiber the ndex of its first and last point in the voxelSize volume
148+
containing for each fiber the index of its first and last point in the voxelSize volume
149149
endpointsmm : ndarray of size [#fibers, 2, 3]
150-
endpoints in milimeter coordinates
150+
endpoints in millimeter coordinates
151151
152152
"""
153153
# Init

nipype/interfaces/nilearn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
4-
"""Nilearn is a Python module for fast and easy statistical learning on NeuroImaging data."""
4+
"""Nilearn is a Python library for fast and easy statistical learning on NeuroImaging data."""
55
import os
66

77
import numpy as np

0 commit comments

Comments
 (0)