MAINT: PEP8 fixes and _interpolation_test.pyx -> interpolation.pyx rename

This commit is contained in:
Gregory R. Lee
2015-08-13 23:39:55 -04:00
parent fb0b258deb
commit cef22e4234
8 changed files with 69 additions and 47 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ def resize(image, output_shape, order=1, mode='constant', cval=0, clip=True,
Whether to keep the original range of values. Otherwise, the input
image is converted according to the conventions of `img_as_float`.
Notes
-----
Note
----
Modes 'mirror' and 'reflect' are similar, but differ in whether the edge
voxels 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
+2 -2
View File
@@ -76,8 +76,8 @@ def _warp_fast(cnp.ndarray image, cnp.ndarray H, output_shape=None,
Used in conjunction with mode 'C' (constant), the value
outside the image boundaries.
Notes
-----
Note
----
Modes 'mirror' and 'reflect' are similar, but differ in whether the edge
voxels 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
-2
View File
@@ -181,7 +181,6 @@ def test_resize3d_resize():
assert_almost_equal(resized, ref)
def test_resize3d_2din_3dout():
# 3D output with 2D input
x = np.zeros((5, 5), dtype=np.double)
@@ -192,7 +191,6 @@ def test_resize3d_2din_3dout():
assert_almost_equal(resized, ref)
def test_resize3d_bilinear():
# bilinear 3rd dimension
x = np.zeros((5, 5, 2), dtype=np.double)