Skip to content

Commit b0e4a65

Browse files
committed
TEST: Purge doctest header
1 parent 30276b3 commit b0e4a65

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+2
-644
lines changed

nipype/algorithms/confounds.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
'''
55
Algorithms to compute confounds in :abbr:`fMRI (functional MRI)`
6-
7-
Change directory to provide relative paths for doctests
8-
>>> import os
9-
>>> filepath = os.path.dirname(os.path.realpath(__file__))
10-
>>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
11-
>>> os.chdir(datadir)
12-
136
'''
147
from __future__ import (print_function, division, unicode_literals,
158
absolute_import)

nipype/algorithms/mesh.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
"""
55
Miscellaneous algorithms for 2D contours and 3D triangularized meshes handling
6-
7-
.. testsetup::
8-
# Change directory to provide relative paths for doctests
9-
>>> import os
10-
>>> filepath = os.path.dirname(os.path.realpath( __file__ ))
11-
>>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
12-
>>> os.chdir(datadir)
13-
146
"""
157
from __future__ import (print_function, division, unicode_literals,
168
absolute_import)

nipype/algorithms/metrics.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
'''
55
Image assessment algorithms. Typical overlap and error computation
66
measures to evaluate results from other processing units.
7-
8-
Change directory to provide relative paths for doctests
9-
>>> import os
10-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
11-
>>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
12-
>>> os.chdir(datadir)
13-
147
'''
158
from __future__ import (print_function, division, unicode_literals,
169
absolute_import)

nipype/algorithms/misc.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
'''
55
Miscellaneous algorithms
6-
7-
Change directory to provide relative paths for doctests
8-
>>> import os
9-
>>> filepath = os.path.dirname(os.path.realpath(__file__))
10-
>>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
11-
>>> os.chdir(datadir)
12-
136
'''
147
from __future__ import (print_function, division, unicode_literals,
158
absolute_import)

nipype/algorithms/modelgen.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@
1010
These functions include:
1111
1212
* SpecifyModel: allows specification of sparse and non-sparse models
13-
14-
Change directory to provide relative paths for doctests
15-
>>> import os
16-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
17-
>>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
18-
>>> os.chdir(datadir)
19-
2013
"""
2114
from __future__ import (print_function, division, unicode_literals,
2215
absolute_import)

nipype/algorithms/rapidart.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@
1111
1212
* StimulusCorrelation: determines correlation between stimuli
1313
schedule and movement/intensity parameters
14-
15-
Change directory to provide relative paths for doctests
16-
>>> import os
17-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
18-
>>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
19-
>>> os.chdir(datadir)
2014
"""
2115
from __future__ import (print_function, division, unicode_literals,
2216
absolute_import)

nipype/caching/memory.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
"""
33
Using nipype with persistence and lazy recomputation but without explicit
44
name-steps pipeline: getting back scope in command-line based programming.
5-
6-
Change directory to provide relative paths for doctests
7-
>>> import os
8-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
9-
>>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
10-
>>> os.chdir(datadir)
115
"""
126
from __future__ import (print_function, division, unicode_literals,
137
absolute_import)

nipype/interfaces/afni/model.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
Examples
77
--------
88
See the docstrings of the individual classes for examples.
9-
.. testsetup::
10-
# Change directory to provide relative paths for doctests
11-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
12-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
13-
>>> os.chdir(datadir)
149
"""
1510
from __future__ import (print_function, division, unicode_literals,
1611
absolute_import)

nipype/interfaces/afni/preprocess.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
"""AFNI preprocessing interfaces
5-
6-
Change directory to provide relative paths for doctests
7-
>>> import os
8-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
9-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
10-
>>> os.chdir(datadir)
115
"""
126
from __future__ import (print_function, division, unicode_literals,
137
absolute_import)

nipype/interfaces/afni/svm.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
33
# vi: set ft = python sts = 4 ts = 4 sw = 4 et:
44
"""Afni svm interfaces
5-
6-
Change directory to provide relative paths for doctests
7-
>>> import os
8-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
9-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
10-
>>> os.chdir(datadir)
115
"""
126
from __future__ import (print_function, division, unicode_literals,
137
absolute_import)

nipype/interfaces/afni/utils.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
Examples
77
--------
88
See the docstrings of the individual classes for examples.
9-
.. testsetup::
10-
# Change directory to provide relative paths for doctests
11-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
12-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
13-
>>> os.chdir(datadir)
149
"""
1510
from __future__ import (print_function, division, unicode_literals,
1611
absolute_import)

nipype/interfaces/ants/legacy.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
# of the antsApplyTransform program. This implementation is here
55
# for backwards compatibility.
66
"""ANTS Apply Transforms interface
7-
8-
Change directory to provide relative paths for doctests
9-
>>> import os
10-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
11-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
12-
>>> os.chdir(datadir)
137
"""
148

159
from builtins import range

nipype/interfaces/ants/registration.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""The ants module provides basic functions for interfacing with ants
33
functions.
4-
5-
Change directory to provide relative paths for doctests
6-
>>> import os
7-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
8-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
9-
>>> os.chdir(datadir)
104
"""
115
from __future__ import (print_function, division, unicode_literals,
126
absolute_import)

nipype/interfaces/ants/resampling.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# -*- coding: utf-8 -*-
22
"""ANTS Apply Transforms interface
3-
4-
Change directory to provide relative paths for doctests
5-
>>> import os
6-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
7-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
8-
>>> os.chdir(datadir)
93
"""
104
from __future__ import (print_function, division, unicode_literals,
115
absolute_import)

nipype/interfaces/ants/segmentation.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# -*- coding: utf-8 -*-
22
"""The ants module provides basic functions for interfacing with ants functions.
3-
4-
Change directory to provide relative paths for doctests
5-
>>> import os
6-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
7-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
8-
>>> os.chdir(datadir)
9-
103
"""
114
from __future__ import (print_function, division, unicode_literals,
125
absolute_import)

nipype/interfaces/ants/utils.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# -*- coding: utf-8 -*-
22
"""ANTS Apply Transforms interface
3-
4-
Change directory to provide relative paths for doctests
5-
>>> import os
6-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
7-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
8-
>>> os.chdir(datadir)
93
"""
104
from __future__ import (print_function, division, unicode_literals,
115
absolute_import)

nipype/interfaces/ants/visualization.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# -*- coding: utf-8 -*-
22
"""The ants visualisation module provides basic functions based on ITK.
3-
Change directory to provide relative paths for doctests
4-
>>> import os
5-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
6-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
7-
>>> os.chdir(datadir)
83
"""
94
from __future__ import (print_function, division, unicode_literals,
105
absolute_import)

nipype/interfaces/bru2nii.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# -*- coding: utf-8 -*-
22
"""The bru2nii module provides basic functions for dicom conversion
3-
4-
Change directory to provide relative paths for doctests
5-
>>> import os
6-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
7-
>>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
8-
>>> os.chdir(datadir)
93
"""
104
from __future__ import (print_function, division, unicode_literals,
115
absolute_import)

nipype/interfaces/c3.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""The ants module provides basic functions for interfacing with ants
33
functions.
4-
5-
Change directory to provide relative paths for doctests
6-
>>> import os
7-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
8-
>>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
9-
>>> os.chdir(datadir)
104
"""
115
from __future__ import (print_function, division, unicode_literals,
126
absolute_import)

nipype/interfaces/camino/calib.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
Change directory to provide relative paths for doctests
4-
>>> import os
5-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
6-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
7-
>>> os.chdir(datadir)
8-
9-
"""
102
from __future__ import (print_function, division, unicode_literals,
113
absolute_import)
124

nipype/interfaces/camino/connectivity.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
Change directory to provide relative paths for doctests
4-
>>> import os
5-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
6-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
7-
>>> os.chdir(datadir)
8-
9-
"""
102
from __future__ import (print_function, division, unicode_literals,
113
absolute_import)
124
import os

nipype/interfaces/camino/convert.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
Change directory to provide relative paths for doctests
4-
>>> import os
5-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
6-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
7-
>>> os.chdir(datadir)
8-
9-
"""
102
from __future__ import (print_function, division, unicode_literals,
113
absolute_import)
124

nipype/interfaces/camino/dti.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
Change directory to provide relative paths for doctests
4-
>>> import os
5-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
6-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
7-
>>> os.chdir(datadir)
8-
9-
"""
102
from __future__ import (print_function, division, unicode_literals,
113
absolute_import)
124

nipype/interfaces/camino/odf.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
Change directory to provide relative paths for doctests
4-
>>> import os
5-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
6-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
7-
>>> os.chdir(datadir)
8-
9-
"""
102
from __future__ import (print_function, division, unicode_literals,
113
absolute_import)
124

nipype/interfaces/camino/utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
Change directory to provide relative paths for doctests
4-
>>> import os
5-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
6-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
7-
>>> os.chdir(datadir)
8-
9-
"""
102
from __future__ import (print_function, division, unicode_literals,
113
absolute_import)
124
import os

nipype/interfaces/camino2trackvis/convert.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
33
Provides interfaces to various commands provided by Camino-Trackvis
4-
5-
Change directory to provide relative paths for doctests
6-
>>> import os
7-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
8-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
9-
>>> os.chdir(datadir)
10-
114
"""
125
from __future__ import (print_function, division, unicode_literals,
136
absolute_import)

nipype/interfaces/cmtk/cmtk.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
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-
"""
5-
Change directory to provide relative paths for doctests
6-
>>> import os
7-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
8-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
9-
>>> os.chdir(datadir)
10-
11-
"""
124
from __future__ import (print_function, division, unicode_literals,
135
absolute_import)
146
from builtins import range, open

nipype/interfaces/cmtk/convert.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
Change directory to provide relative paths for doctests
4-
>>> import os
5-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
6-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
7-
>>> os.chdir(datadir)
8-
9-
"""
102
from __future__ import (print_function, division, unicode_literals,
113
absolute_import)
124

nipype/interfaces/cmtk/nx.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
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-
"""
5-
Change directory to provide relative paths for doctests
6-
>>> import os
7-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
8-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
9-
>>> os.chdir(datadir)
10-
11-
"""
124
from __future__ import (print_function, division, unicode_literals,
135
absolute_import)
146
from builtins import str, open, range

nipype/interfaces/cmtk/parcellation.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
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-
"""
5-
Change directory to provide relative paths for doctests
6-
>>> import os
7-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
8-
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
9-
>>> os.chdir(datadir)
10-
11-
"""
124
from __future__ import (print_function, division, unicode_literals,
135
absolute_import)
146
from builtins import range

0 commit comments

Comments
 (0)