From 9ea43d777ba351b1c6aaf89d65a2185c1c60c6b2 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sat, 4 Oct 2014 21:41:35 -0500 Subject: [PATCH] Avoid type incompatibility warnings --- skimage/draw/draw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/draw/draw.py b/skimage/draw/draw.py index 2f03b018..01fb4bf3 100644 --- a/skimage/draw/draw.py +++ b/skimage/draw/draw.py @@ -63,7 +63,7 @@ def ellipse(cy, cx, yradius, xradius, shape=None): return _ellipse_in_shape(shape, center, radiuses) else: # rounding here is necessary to avoid rounding issues later - upper_left = np.floor(center - radiuses) + upper_left = np.floor(center - radiuses).astype(int) shifted_center = center - upper_left