From e7288f9140b1a1a8a545f19434ec5805006b4a1a Mon Sep 17 00:00:00 2001 From: "Josh Warner (Mac)" Date: Tue, 20 Nov 2012 01:17:42 -0600 Subject: [PATCH] BUG - Dtype conversion to Boolean in a new code path not included in current tests. --- skimage/feature/peak.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/feature/peak.py b/skimage/feature/peak.py index ea2ace3e..2d40ded6 100644 --- a/skimage/feature/peak.py +++ b/skimage/feature/peak.py @@ -129,7 +129,7 @@ def peak_local_max(image, min_distance=10, threshold_abs=0, threshold_rel=0.1, if indices is True: return [] else: - return np.zeros_like(image) + return np.zeros_like(image, dtype=bool) image = image.copy() # Non maximum filter