[skimage] 07/24: Fix ValueError on win-amd64
Andreas Tille
tille at debian.org
Fri Dec 23 08:22:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to tag v0.3.1
in repository skimage.
commit 593e4fa6d44d12040fae1ef665e364fc2ed18ed0
Author: cgohlke <cgohlke at uci.edu>
Date: Mon Oct 10 13:07:50 2011 -0700
Fix ValueError on win-amd64
---
scikits/image/transform/_hough_transform.pyx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scikits/image/transform/_hough_transform.pyx b/scikits/image/transform/_hough_transform.pyx
index 96c88ab..b34b28e 100644
--- a/scikits/image/transform/_hough_transform.pyx
+++ b/scikits/image/transform/_hough_transform.pyx
@@ -48,7 +48,7 @@ def _hough(np.ndarray img, np.ndarray[ndim=1, dtype=np.double_t] theta=None):
offset = max_distance / 2
# compute the nonzero indexes
- cdef np.ndarray[ndim=1, dtype=np.int_t] x_idxs, y_idxs
+ cdef np.ndarray[ndim=1, dtype=np.npy_intp] x_idxs, y_idxs
y_idxs, x_idxs = np.PyArray_Nonzero(img)
@@ -99,7 +99,7 @@ def _probabilistic_hough(np.ndarray img, int value_threshold, int line_length, \
accum = np.zeros((max_distance, theta.shape[0]), dtype=np.int64)
offset = max_distance / 2
# find the nonzero indexes
- cdef np.ndarray[ndim=1, dtype=np.int_t] x_idxs, y_idxs
+ cdef np.ndarray[ndim=1, dtype=np.npy_intp] x_idxs, y_idxs
y_idxs, x_idxs = np.nonzero(img)
num_indexes = y_idxs.shape[0] # x and y are the same shape
nthetas = theta.shape[0]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/skimage.git
More information about the debian-science-commits
mailing list