Skip to content

Commit 7742fff

Browse files
committed
More doc fixes.
1 parent 038bd06 commit 7742fff

File tree

5 files changed

+15
-21
lines changed

5 files changed

+15
-21
lines changed

doc/users/install.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ This page covers the necessary steps to install Nipype.
99
Download
1010
--------
1111

12-
Release 0.7.0: [`zip <https://github.com/nipy/nipype/archive/0.7.zip>`_ `tar.gz
13-
<https://github.com/nipy/nipype/archive/0.7.tar.gz>`_]
12+
Release 0.7.0: [`zip <https://github.com/nipy/nipype/archive/0.7.zip>`__ `tar.gz
13+
<https://github.com/nipy/nipype/archive/0.7.tar.gz>`__]
1414

15-
Development: [`zip <http://github.com/nipy/nipype/zipball/master>`_ `tar
16-
<http://github.com/nipy/nipype/tarball/master>`_]
15+
Development: [`zip <http://github.com/nipy/nipype/zipball/master>`__ `tar.gz
16+
<http://github.com/nipy/nipype/tarball/master>`__]
1717

1818
`Prior downloads <http://github.com/nipy/nipype/tags>`_
1919

examples/dmri_connectivity_advanced.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,13 @@
139139
"""
140140
Creating the workflow's nodes
141141
=============================
142-
"""
143142
144-
"""
145143
Conversion nodes
146144
----------------
147-
"""
148145
149-
"""
150146
A number of conversion operations are required to obtain NIFTI files from the FreesurferSource for each subject.
151147
Nodes are used to convert the following:
148+
152149
* Original structural image to NIFTI
153150
* Pial, white, inflated, and spherical surfaces for both the left and right hemispheres are converted to GIFTI for visualization in ConnectomeViewer
154151
* Parcellated annotation files for the left and right hemispheres are also converted to GIFTI
@@ -200,6 +197,7 @@
200197

201198
"""
202199
Tensors are fitted to each voxel in the diffusion-weighted image and from these three maps are created:
200+
203201
* Major eigenvector in each voxel
204202
* Apparent diffusion coefficient
205203
* Fractional anisotropy
@@ -282,9 +280,7 @@
282280
"""
283281
Structural segmentation nodes
284282
-----------------------------
285-
"""
286283
287-
"""
288284
The following node identifies the transformation between the diffusion-weighted
289285
image and the structural image. This transformation is then applied to the tracts
290286
so that they are in the same space as the regions of interest.
@@ -355,10 +351,7 @@
355351
Connecting the workflow
356352
=======================
357353
Here we connect our processing pipeline.
358-
"""
359354
360-
361-
"""
362355
Connecting the inputs, FreeSurfer nodes, and conversions
363356
--------------------------------------------------------
364357
"""
@@ -436,7 +429,6 @@
436429
mapping.connect([(tensor2fa, MRconvert_fa,[("FA","in_file")])])
437430

438431
"""
439-
440432
This block creates the rough brain mask to be multiplied, mulitplies it with the
441433
fractional anisotropy image, and thresholds it to get the single-fiber voxels.
442434
"""

examples/smri_ants_build_template.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,14 @@
6868
"""
6969
3. Define the workflow and its working directory
7070
"""
71+
7172
tbuilder=pe.Workflow(name="ANTSTemplateBuilder")
7273
tbuilder.base_dir=requestedPath
7374

7475
"""
7576
4. Define data sources. In real life these would be replace by DataGrabbers
7677
"""
78+
7779
datasource = pe.Node(interface=util.IdentityInterface(fields=
7880
['imageList', 'passiveImagesDictionariesList']),
7981
run_without_submitting=True,
@@ -84,6 +86,7 @@
8486
"""
8587
5. Template is initialized by a simple average
8688
"""
89+
8790
initAvg = pe.Node(interface=ants.AverageImages(), name ='initAvg')
8891
initAvg.inputs.dimension = 3
8992
initAvg.inputs.normalize = True

examples/tessellation_tutorial.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env python
22
"""
3-
=============================================
3+
=================================================
44
sMRI: Regional Tessellation and Surface Smoothing
5-
=============================================
5+
=================================================
66
77
Introduction
88
============
@@ -26,8 +26,7 @@
2626
2727
.. warning::
2828
29-
This workflow will take several hours to finish entirely, since smoothing
30-
the larger cortical surfaces is very time consuming.
29+
This workflow will take several hours to finish entirely, since smoothing the larger cortical surfaces is very time consuming.
3130
3231
Packages and Data Setup
3332
=======================

tools/interfacedocgen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def generate_api_doc(self, uri):
302302
ad += '\n.. _%s\n\n' % label
303303
ad += '\n.. index:: %s\n\n' % c
304304
ad += c + '\n' + self.rst_section_levels[2] * len(c) + '\n\n'
305-
ad += "`Link to code <%s>`_\n\n" % get_file_url(classinst)
305+
ad += "`Link to code <%s>`__\n\n" % get_file_url(classinst)
306306
ad += trim(classinst.help(returnhelp=True),
307307
self.rst_section_levels[3]) + '\n'
308308

@@ -313,7 +313,7 @@ def generate_api_doc(self, uri):
313313
label = ':func:`' + name + '`'
314314
ad += '\n.. _%s:\n\n' % (uri + '.' + name)
315315
ad += '\n'.join((label, self.rst_section_levels[2] * len(label)))
316-
ad += "\n\n`Link to code <%s>`_\n\n" % get_file_url(finst)
316+
ad += "\n\n`Link to code <%s>`__\n\n" % get_file_url(finst)
317317
helpstr = trim(finst.__doc__, self.rst_section_levels[3])
318318
ad += '\n\n' + helpstr + '\n\n'
319319

@@ -332,7 +332,7 @@ def generate_api_doc(self, uri):
332332
label = ':func:`' + name + '`'
333333
ad += '\n.. _%s:\n\n' % (uri + '.' + name)
334334
ad += '\n'.join((label, self.rst_section_levels[2] * len(label)))
335-
ad += "\n\n`Link to code <%s>`_\n\n" % get_file_url(finst)
335+
ad += "\n\n`Link to code <%s>`__\n\n" % get_file_url(finst)
336336
helpstr = trim(finst.__doc__, self.rst_section_levels[3])
337337
ad += '\n\n' + helpstr + '\n\n'
338338

0 commit comments

Comments
 (0)