Skip to content

Commit 88ce978

Browse files
oestebaneffigies
andauthored
Apply suggestions from code review
Co-Authored-By: Chris Markiewicz <[email protected]>
1 parent 571d27e commit 88ce978

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
@@ -147,7 +147,7 @@ def get_vox_dims(volume):
147147
l1analysis = pe.Workflow(name='analysis')
148148

149149
"""Generate SPM-specific design information using
150-
:ref:`nipype.algorithms.modelgen.SpecifyModel`.
150+
:ref:`nipype.algorithms.modelgen.SpecifySPMModel`.
151151
"""
152152

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

@@ -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.Workflow.connect` function creates the
329+
The :func:`~nipype.pipeline.engine.workflows.Workflow.connect` method creates the
330330
links between the processes, i.e., how data should flow in and out of
331331
the processing nodes.
332332
"""
@@ -390,8 +390,8 @@ def getstripdir(subject_id):
390390
The code discussed above sets up all the necessary data structures
391391
with appropriate parameters and the connectivity between the
392392
processes, but does not generate any output. To actually run the
393-
analysis on the data the :func:`nipype.pipeline.engine.workflows.Workflow.run`
394-
function needs to be called.
393+
analysis on the data the :func:`~nipype.pipeline.engine.workflows.Workflow.run`
394+
method needs to be called.
395395
"""
396396

397397
if __name__ == '__main__':

nipype/algorithms/confounds.py

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

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)