Skip to content

Commit 3a881e1

Browse files
committed
fix: docs build without any sphinx errors or warnings
1 parent c47fb4d commit 3a881e1

13 files changed

+36
-172
lines changed

INSTALL

+3-28
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,8 @@
11
.. -*- rst -*- rest mode for emacs
22
.. _development-quickstart:
33

4-
========================
5-
Development quickstart
6-
========================
4+
For installation instructions see documentation:
75

8-
Source Code
9-
===========
6+
http://nipy.org/nipype/
107

11-
Nipype uses sourceforge_ for our code hosting. For immediate access
12-
to the source code, see `the nipype developer wiki
13-
<http://sourceforge.net/apps/trac/nipy/wiki>`_.
14-
15-
For information on coding style, writing documentation, writing tests
16-
or using nipy tools, please see the `NIPY developer resources`_ site.
17-
18-
.. _trunk_download:
19-
20-
Check out the current version
21-
=============================
22-
23-
To access the source code you need subversion_. You can check out the
24-
current trunk with the following command::
25-
26-
svn co https://nipy.svn.sourceforge.net/svnroot/nipy/nipype/trunk/ nipype
27-
28-
Then change into the source directory and install nipype::
29-
30-
cd nipype
31-
python setup.py install
32-
33-
.. include:: doc/links_names.txt
8+
or doc/users/install.rst

doc/devel/development_quickstart.rst

-1
This file was deleted.

doc/users/install.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ Slicer_
7676
3.6 or later
7777

7878
Nipy_
79-
0.1.2+20110404 or later (required for doc building)
79+
0.1.2+20110404 or later
8080

8181
Nitime_
82-
(optional; required for doc building)
82+
(optional)
8383

8484
Camino_
8585

@@ -170,5 +170,4 @@ where, $pathtomatlabdir is the path to your matlab installation and
170170
$platform is the directory referring to x86 or x64 installations
171171
(typically glnxa64 on 64-bit installations).
172172

173-
174173
.. include:: ../links_names.txt

doc/users/interface_tutorial.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ which provides information on each of the options one can assign.
174174
realignment_parameters: Estimated translation and rotation parameters
175175

176176

177-
Our :ref:`interfaces` documentation provides html versions of our
177+
Our :ref:`interface-index` documentation provides html versions of our
178178
docstrings and includes links to the specific package
179179
documentation. For instance, the :class:`nipype.interfaces.fsl.Bet`
180180
docstring has a direct link to the online BET Documentation.

doc/users/model_specification.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ or with amplitudes::
8181

8282
Together with this information, one needs to specify:
8383

84-
- whether the durations and event onsets are specified in terms of scan volumes or
85-
secs.
84+
- whether the durations and event onsets are specified in terms of scan volumes
85+
or secs.
8686

8787
- the high-pass filter cutoff,
8888

doc/users/parallel_processing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Once the clients have been started, any pipeline executed with::
6666

6767
will automatically start getting distributed to the
6868
clients. Alternatively, a config file may be used to define the
69-
plugin. See :ref:`config_file_` for details.
69+
plugin. See :ref:`config_file` for details.
7070

7171
To prevent prevent parallel execution type::
7272

@@ -89,7 +89,7 @@ sending a dictionary containing any of the following keys::
8989
qsub_args - any other command line args to be passed to qsub.
9090

9191
For example, the following snippet executes the workflow on myqueue with
92-
a custom template:
92+
a custom template::
9393
9494
workflow.run(plugin='SGE',
9595
plugin_args=dict(template='mytemplate.sh', qsub_args='-q myqueue')

doc/users/pipeline_tutorial.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Requirements
4747
Analysis tutorials
4848

4949
- FSL_, FreeSurfer_, Camino_, ConnectomeViewer and MATLAB_ are available and
50-
callable from the command line
50+
callable from the command line
5151

5252
- SPM_ 5/8 is installed and callable in matlab
5353

examples/afni_dicomconvert.py

-51
This file was deleted.

examples/bet_inputs_gui.py

-42
This file was deleted.

examples/fsl_outputtype.py

-30
This file was deleted.

examples/fsl_resting.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
A pipeline example that uses intergrates several interfaces to
55
perform a first and second level analysis on a two-subject data
66
set.
7-
"""
87
98
10-
"""
119
1. Tell python where to find the appropriate functions.
1210
"""
1311

@@ -45,6 +43,7 @@
4543
in the provided data set, the nose is behind the head and causes problems for
4644
segmentation routines
4745
"""
46+
4847
nosestrip = pe.Node(interface=fsl.BET(frac=0.3),
4948
name = 'nosestrip')
5049
skullstrip = pe.Node(interface=fsl.BET(mask = True),
@@ -64,6 +63,7 @@
6463
"""
6564
skull strip functional data
6665
"""
66+
6767
func_skullstrip = pe.Node(interface=fsl.BET(functional = True),
6868
name='stripfunc')
6969
#iterfield = ['in_file'])
@@ -72,24 +72,28 @@
7272
Run FAST on T1 anatomical image to obtain CSF mask.
7373
Create mask for three tissue types.
7474
"""
75+
7576
getCSFmasks = pe.Node(interface=fsl.FAST(no_pve=True,segments=True),
7677
name = 'segment')
7778

7879
"""
7980
Apply registration matrix to CSF segmentation mask.
8081
"""
82+
8183
applyReg2CSFmask = pe.Node(interface=fsl.ApplyXfm(apply_xfm=True),
8284
name = 'applyreg2csfmask')
8385

8486
"""
8587
Threshold CSF segmentation mask from .90 to 1
8688
"""
89+
8790
threshCSFseg = pe.Node(interface = fsl.ImageMaths(op_string = ' -thr .90 -uthr 1 -bin '),
8891
name = 'threshcsfsegmask')
8992

9093
"""
9194
Extract CSF timeseries
9295
"""
96+
9397
avgCSF = pe.Node(interface = fsl.ImageMeants(), name='extractcsfts')
9498

9599

@@ -100,6 +104,7 @@ def pickfirst(files):
100104
"""
101105
Create the workflow
102106
"""
107+
103108
csffilter = pe.Workflow(name='csffilter')
104109
csffilter.connect([(extract_ref, motion_correct,[('roi_file', 'ref_file')]),
105110
(extract_ref, refskullstrip,[('roi_file', 'in_file')]),
@@ -122,24 +127,28 @@ def pickfirst(files):
122127
c. Use :class:`nipype.interfaces.spm.SpecifyModel` to generate
123128
SPM-specific design information.
124129
"""
130+
125131
modelspec = pe.Node(interface=model.SpecifyModel(), name="modelspec")
126132

127133
"""
128134
d. Use :class:`nipype.interfaces.fsl.Level1Design` to generate a
129135
run specific fsf file for analysis
130136
"""
137+
131138
level1design = pe.Node(interface=fsl.Level1Design(), name="fsfdesign")
132139

133140
"""
134141
e. Use :class:`nipype.interfaces.fsl.FEATModel` to generate a
135142
run specific mat file for use by FILMGLS
136143
"""
144+
137145
modelgen = pe.Node(interface=fsl.FEATModel(), name='modelgen')
138146

139147
"""
140148
f. Use :class:`nipype.interfaces.fsl.FILMGLS` to estimate a model
141149
specified by a mat file and a functional run
142150
"""
151+
143152
modelestimate = pe.Node(interface=fsl.FILMGLS(), name='modelestimate')
144153
#iterfield = ['design_file','in_file'])
145154

@@ -270,11 +279,3 @@ def subjectinfo(meantsfile):
270279

271280
l1pipeline.run()
272281
l1pipeline.write_graph()
273-
274-
"""
275-
Store significant result-files in a special directory
276-
"""
277-
#datasink = pe.Node(interface=nio.DataSink(),name='datasink')
278-
#datasink.inputs.base_directory = os.path.abspath('csffiltered')
279-
#def getstripdir(subject_id):
280-
# return os.path.join(os.path.abspath('nataliaPipeline'),'_subject_id_%s' % subject_id)

tools/ex2rst

+7
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@ def exfile2rstfile(filename, opts):
172172
# write converted ReST
173173
dfile.write(exfile2rst(filename))
174174

175+
links = """
176+
177+
.. include:: ../../links_names.txt
178+
179+
"""
180+
dfile.write(links)
181+
175182
if opts.sourceref:
176183
# write post example see also box
177184
msg = """

tools/make_examples.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
3434
.. _examples:
3535
36-
note_about_examples
36+
Examples
37+
========
38+
39+
.. note_about_examples
3740
"""
3841
#-----------------------------------------------------------------------------
3942
# Function defintions
@@ -68,6 +71,7 @@ def show():
6871
sh('../../../tools/ex2rst --project Nipype --outdir . ../../../examples/frontiers_paper')
6972

7073
# Make the index.rst file
74+
"""
7175
index = open('index.rst', 'w')
7276
index.write(examples_header)
7377
for name in [os.path.splitext(f)[0] for f in glob('*.rst')]:
@@ -76,6 +80,8 @@ def show():
7680
if name not in(['index','note_about_examples']):
7781
index.write(' %s\n' % name)
7882
index.close()
83+
"""
84+
7985
# Execute each python script in the directory.
8086
if '--no-exec' in sys.argv:
8187
pass

0 commit comments

Comments
 (0)