Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openpiv/src/lib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import numpy as np
cimport numpy as np
cimport cython
from libc.math cimport isnan

DTYPEf = np.float
ctypedef np.float_t DTYPEf_t
DTYPEi = np.int
ctypedef np.int_t DTYPEi_t


@cython.boundscheck(False) # turn of bounds-checking for entire function
@cython.wraparound(False) # turn of bounds-checking for entire function
def replace_nans(np.ndarray[DTYPEf_t, ndim=2] array, int max_iter, float tol, int kernel_size=2, str method='disk'):
Expand Down Expand Up @@ -141,7 +141,7 @@ def replace_nans(np.ndarray[DTYPEf_t, ndim=2] array, int max_iter, float tol, in
if j+J-kernel_size < array.shape[1] and j+J-kernel_size >= 0:

# if the neighbour element is not NaN itself.
if not isnan(array[i+I-kernel_size, j+J-kernel_size]):
if not np.isnan(array[i+I-kernel_size, j+J-kernel_size]):

# do not bother with 0 kernel values
if kernel[I, J] != 0:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@


setup( name = "OpenPIV",
version = "0.20.2",
version = "0.20.3",
author = "OpenPIV contributors",
author_email = "openpiv2008@gmail.com",
description = "An open source software for PIV data analysis",
Expand Down