From 7299753602df96dd67d8bd0ea967f0af62861146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Wed, 2 Oct 2013 10:38:11 +0200 Subject: [PATCH] FIX: broken test (thanks unittest!) --- skimage/draw/_draw.pyx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/skimage/draw/_draw.pyx b/skimage/draw/_draw.pyx index bb190b8b..f4814f84 100644 --- a/skimage/draw/_draw.pyx +++ b/skimage/draw/_draw.pyx @@ -410,17 +410,16 @@ def circle_perimeter_aa(Py_ssize_t cy, Py_ssize_t cx, Py_ssize_t radius): [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) """ - cdef list rr = [y, x, y, x, -y, -x, -y, -x] - cdef list cc = [x, y, -x, -y, x, y, -x, -y] - cdef list val = [1] * 8 - cdef Py_ssize_t x = 0 cdef Py_ssize_t y = radius cdef Py_ssize_t d = 0 cdef double dceil = 0 + cdef double dceil_prev = 0 - dceil_prev = 0 + cdef list rr = [y, x, y, x, -y, -x, -y, -x] + cdef list cc = [x, y, -x, -y, x, y, -x, -y] + cdef list val = [1] * 8 while y > x + 1: x += 1