From 25d15c603d837a19f9d281ff8bee9dfbadc22ea9 Mon Sep 17 00:00:00 2001 From: Jeremy Metz Date: Tue, 23 Feb 2016 22:17:28 +0000 Subject: [PATCH] Updated default value to be backwards compatible --- skimage/feature/peak.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/feature/peak.py b/skimage/feature/peak.py index 6b90d7df..b4a0d44a 100644 --- a/skimage/feature/peak.py +++ b/skimage/feature/peak.py @@ -4,7 +4,7 @@ from ..filters import rank_order def peak_local_max(image, min_distance=1, threshold_abs=None, - threshold_rel=None, exclude_border=1, indices=True, + threshold_rel=None, exclude_border=True, indices=True, num_peaks=np.inf, footprint=None, labels=None): """Find peaks in an image as coordinate list or boolean mask. @@ -92,7 +92,7 @@ def peak_local_max(image, min_distance=1, threshold_abs=None, array([[10, 10, 10]]) """ - + if type(exclude_border) == bool: exclude_border = min_distance if exclude_border else 0