From 12dab41c3988ce6a5a5383b405e1e20c8fe2b1ad Mon Sep 17 00:00:00 2001 From: Pratap Vardhan Date: Tue, 7 Oct 2014 18:05:57 +0530 Subject: [PATCH] CLN: Correct dtype typo --- skimage/morphology/selem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/morphology/selem.py b/skimage/morphology/selem.py index ae287304..21200e11 100644 --- a/skimage/morphology/selem.py +++ b/skimage/morphology/selem.py @@ -115,7 +115,7 @@ def disk(radius, dtype=np.uint8): """ L = np.arange(-radius, radius + 1) X, Y = np.meshgrid(L, L) - return np.array((X ** 2 + Y ** 2) <= radius ** 2, dtype=np.uint8) + return np.array((X ** 2 + Y ** 2) <= radius ** 2, dtype=dtype) def cube(width, dtype=np.uint8):