MAINT: minor spacing issues and typos fixed

This commit is contained in:
Gregory R. Lee
2015-08-13 23:19:56 -04:00
parent 81764d8ed5
commit c7a82f8ceb
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -5,13 +5,13 @@ from .utils import _mode_deprecations
def coord_map_py(Py_ssize_t dim, long coord, mode):
""" interpolation.coord_map python wrapper """
"""interpolation.coord_map python wrapper"""
cdef char mode_c = ord(mode[0].upper())
return coord_map(dim, coord, mode_c)
def extend_image(image, pad=10, mode='constant', cval=0):
""" Pad a 2D image by ``pad`` pixels on each side.
"""Pad a 2D image by ``pad`` pixels on each side.
Parameters
----------
+1 -1
View File
@@ -64,7 +64,7 @@ def resize(image, output_shape, order=1, mode='constant', cval=0, clip=True,
Note
----
Modes 'reflect' and 'symmetric' are similar, but differ in whether the edge
voxels are duplicated during the reflection. As an example, if an array
pixels are duplicated during the reflection. As an example, if an array
has values [0, 1, 2] and was padded to the right by four values using
symmetric, the result would be [0, 1, 2, 2, 1, 0, 0], while for reflect it
would be [0, 1, 2, 1, 0, 1, 2].
+1 -1
View File
@@ -80,7 +80,7 @@ def _warp_fast(cnp.ndarray image, cnp.ndarray H, output_shape=None,
Note
----
Modes 'reflect' and 'symmetric' are similar, but differ in whether the edge
voxels are duplicated during the reflection. As an example, if an array
pixels are duplicated during the reflection. As an example, if an array
has values [0, 1, 2] and was padded to the right by four values using
symmetric, the result would be [0, 1, 2, 2, 1, 0, 0], while for reflect it
would be [0, 1, 2, 1, 0, 1, 2].