unwrap: PEP8 fixes for cython extensions.

This commit is contained in:
Jostein Bø Fløystad
2013-11-22 10:42:29 +01:00
parent 676ba5a07e
commit 5022cfb699
2 changed files with 12 additions and 12 deletions
+6 -6
View File
@@ -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],
)
+6 -6
View File
@@ -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],
)