Skip to content

Commit e7dc5fe

Browse files
committed
DOC: Removed spacing between module docstrings and imports
1 parent 0c2dffd commit e7dc5fe

21 files changed

+0
-22
lines changed

nibabel/arraywriters.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def __init__(self, array, out_dtype=None)
2828
something else to make sense of conversions between float and int, or between
2929
larger ints and smaller.
3030
"""
31-
3231
import numpy as np
3332

3433
from .casting import (

nibabel/ecat.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
GPL and some of the header files are adapted from CTI files (called CTI code
4343
below). It's not clear what the licenses are for these files.
4444
"""
45-
4645
import warnings
4746
from numbers import Integral
4847

nibabel/environment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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
"""Settings from the system environment relevant to NIPY"""
4-
54
import os
65
from os.path import join as pjoin
76

nibabel/eulerangles.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
``y``, followed by rotation around ``x``, is known (confusingly) as
8383
"xyz", pitch-roll-yaw, Cardan angles, or Tait-Bryan angles.
8484
"""
85-
8685
import math
8786
from functools import reduce
8887

nibabel/fileholders.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
99
"""Fileholder class"""
10-
1110
from copy import copy
1211

1312
from .openers import ImageOpener

nibabel/filename_parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
99
"""Create filename pairs, triplets etc, with expected extensions"""
10-
1110
import os
1211
import pathlib
1312

nibabel/fileslice.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Utilities for getting array slices out of file-like objects"""
2-
32
import operator
43
from functools import reduce
54
from mmap import mmap

nibabel/imageclasses.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
99
"""Define supported image classes and names"""
10-
1110
from .analyze import AnalyzeImage
1211
from .brikhead import AFNIImage
1312
from .cifti2 import Cifti2Image

nibabel/imageglobals.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
2424
Use ``logger.level = 1`` to see all messages.
2525
"""
26-
2726
import logging
2827

2928
error_level = 40

nibabel/imagestats.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
99
"""Functions for computing image statistics"""
10-
1110
import numpy as np
1211

1312
from nibabel.imageclasses import spatial_axes_first

nibabel/loadsave.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
99
# module imports
1010
"""Utilities to load and save image objects"""
11-
1211
import os
1312

1413
import numpy as np

nibabel/nifti2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
1313
https://www.nitrc.org/forum/message.php?msg_id=3738
1414
"""
15-
1615
import numpy as np
1716

1817
from .analyze import AnalyzeHeader

nibabel/openers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
99
"""Context manager openers for various fileobject types"""
10-
1110
import gzip
1211
import warnings
1312
from bz2 import BZ2File

nibabel/orientations.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
99
"""Utilities for calculating and applying affine orientations"""
10-
11-
1210
import numpy as np
1311
import numpy.linalg as npl
1412

nibabel/parrec.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@
121121
utility via the option "--strict-sort". The dimension info can be exported
122122
to a CSV file by adding the option "--volume-info".
123123
"""
124-
125124
import re
126125
import warnings
127126
from collections import OrderedDict

nibabel/processing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
1717
Smoothing and resampling routines need scipy.
1818
"""
19-
2019
import numpy as np
2120
import numpy.linalg as npl
2221

nibabel/quaternions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
>>> vec = np.array([1, 2, 3]).reshape((3,1)) # column vector
2626
>>> tvec = np.dot(M, vec)
2727
"""
28-
2928
import math
3029

3130
import numpy as np

nibabel/rstutils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
* Make ReST table given array of values
44
"""
5-
65
import numpy as np
76

87

nibabel/spaces.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
mapping), or
2020
* a length 2 sequence with the same information (shape, affine).
2121
"""
22-
2322
from itertools import product
2423

2524
import numpy as np

nibabel/viewers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Includes version of OrthoSlicer3D code originally written by our own
44
Paul Ivanov.
55
"""
6-
76
import weakref
87

98
import numpy as np

nibabel/xmlutils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
99
"""Thin layer around xml.etree.ElementTree, to abstract nibabel xml support"""
10-
1110
from io import BytesIO
1211
from xml.etree.ElementTree import Element, SubElement, tostring # noqa
1312
from xml.parsers.expat import ParserCreate

0 commit comments

Comments
 (0)