From 3b84744c251c4ad1855af3a6314d1e9cfecf5467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Sat, 12 Jan 2013 11:58:33 +0100 Subject: [PATCH] fix docstring + PEP8 --- skimage/draw/_draw.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/skimage/draw/_draw.pyx b/skimage/draw/_draw.pyx index e3048de3..6c50842f 100644 --- a/skimage/draw/_draw.pyx +++ b/skimage/draw/_draw.pyx @@ -198,7 +198,7 @@ def circle_perimeter(int cy, int cx, int radius, method='bresenham'): Centre coordinate of circle. radius: int Radius of circle. - method : string + method : {'bresenham', 'andres'}, optional bresenham : Bresenham method andres : Andres method @@ -245,13 +245,13 @@ def circle_perimeter(int cy, int cx, int radius, method='bresenham'): x += 1 elif method == 'andres': if d >= 2 * (x - 1): - d = d - 2*x + d = d - 2 * x x = x + 1 - elif d <= 2*(radius - y): + elif d <= 2 * (radius - y): d = d + 2 * y - 1 y = y - 1 else: - d = d + 2*(y - x - 1) + d = d + 2 * (y - x - 1) y = y - 1 x = x + 1