Skip to content

Commit b803ac6

Browse files
committed
DOCTEST: Split testsetup from module docstrings
1 parent a2bc501 commit b803ac6

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

nibabel/affines.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
""" Utility routines for working with points and affine transforms
4-
4+
"""
5+
"""
56
.. testsetup::
67
78
>>> from distutils.version import LooseVersion

nibabel/casting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
33
Most routines work round some numpy oddities in floating point precision and
44
casting. Others work round numpy casting to and from python ints
5-
5+
"""
6+
"""
67
.. testsetup::
78
89
>>> from distutils.version import LooseVersion

nibabel/nicom/dwiparams.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
``q_est`` is the closest q vector equivalent to the B matrix, then:
1818
1919
B ~ (q_est . q_est.T) / norm(q_est)
20-
20+
'''
21+
'''
2122
.. testsetup::
2223
2324
>>> from distutils.version import LooseVersion

nibabel/nifti1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
''' Read / write access to NIfTI1 image format
1010
1111
NIfTI1 format defined at http://nifti.nimh.nih.gov/nifti-1/
12-
12+
'''
13+
'''
1314
.. testsetup::
1415
1516
>>> from distutils.version import LooseVersion

nibabel/quaternions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
>>> M = quat2mat(q) # from this module
2424
>>> vec = np.array([1, 2, 3]).reshape((3,1)) # column vector
2525
>>> tvec = np.dot(M, vec)
26-
26+
'''
27+
'''
2728
.. testsetup::
2829
2930
>>> from distutils.version import LooseVersion

0 commit comments

Comments
 (0)