Skip to content

Commit

Permalink
MAINT: minor spacing issues and typos fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
grlee77 committed Aug 14, 2015
1 parent 81764d8 commit c7a82f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions skimage/_shared/interpolation.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down
2 changes: 1 addition & 1 deletion skimage/transform/_warps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down
2 changes: 1 addition & 1 deletion skimage/transform/_warps_cy.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down

0 comments on commit c7a82f8

Please sign in to comment.