From 5022cfb699ca3e49a5ab1a9a9d0c48852e86c708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jostein=20B=C3=B8=20Fl=C3=B8ystad?= Date: Thu, 11 Jul 2013 13:04:38 +0200 Subject: [PATCH] unwrap: PEP8 fixes for cython extensions. --- skimage/exposure/_unwrap_2d.pyx | 12 ++++++------ skimage/exposure/_unwrap_3d.pyx | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/skimage/exposure/_unwrap_2d.pyx b/skimage/exposure/_unwrap_2d.pyx index 1d67d932..4727404c 100644 --- a/skimage/exposure/_unwrap_2d.pyx +++ b/skimage/exposure/_unwrap_2d.pyx @@ -4,13 +4,13 @@ cdef extern void unwrap2D(float* wrapped_image, int image_width, int image_height, int wrap_around_x, int wrap_around_y) -def unwrap_2d(float[:,::1] array, - unsigned char[:,::1] mask, - float[:,::1] unwrapped_array, +def unwrap_2d(float[:, ::1] array, + unsigned char[:, ::1] mask, + float[:, ::1] unwrapped_array, wrap_around): - unwrap2D(&array[0,0], - &unwrapped_array[0,0], - &mask[0,0], + unwrap2D(&array[0, 0], + &unwrapped_array[0, 0], + &mask[0, 0], array.shape[1], array.shape[0], wrap_around[1], wrap_around[0], ) diff --git a/skimage/exposure/_unwrap_3d.pyx b/skimage/exposure/_unwrap_3d.pyx index 9a900cf2..f7a4f10e 100644 --- a/skimage/exposure/_unwrap_3d.pyx +++ b/skimage/exposure/_unwrap_3d.pyx @@ -4,13 +4,13 @@ cdef extern void unwrap3D(float* wrapped_volume, int image_width, int image_height, int volume_depth, int wrap_around_x, int wrap_around_y, int wrap_around_z) -def unwrap_3d(float[:,:,::1] array, - unsigned char[:,:,::1] mask, - float[:,:,::1] unwrapped_array, +def unwrap_3d(float[:, :, ::1] array, + unsigned char[:, :, ::1] mask, + float[:, :, ::1] unwrapped_array, wrap_around): - unwrap3D(&array[0,0,0], - &unwrapped_array[0,0,0], - &mask[0,0,0], + unwrap3D(&array[0, 0, 0], + &unwrapped_array[0, 0, 0], + &mask[0, 0, 0], array.shape[2], array.shape[1], array.shape[0], #TODO: check!!! wrap_around[2], wrap_around[1], wrap_around[0], )