From 90c02565957a23a58135c00fe6a96a71a43b37ad Mon Sep 17 00:00:00 2001 From: JakHolzer <53743814+JakHolzer@users.noreply.github.com> Date: Fri, 11 Sep 2020 16:45:31 +0200 Subject: [PATCH] Update ccl_findpeaks.py --- pyzebra/ccl_findpeaks.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pyzebra/ccl_findpeaks.py b/pyzebra/ccl_findpeaks.py index a8df1d4..6e5ba56 100644 --- a/pyzebra/ccl_findpeaks.py +++ b/pyzebra/ccl_findpeaks.py @@ -5,7 +5,7 @@ from scipy.signal import savgol_filter def ccl_findpeaks( - data, keys, int_threshold=None, prominence=None, smooth=True, window_size=None, poly_order=None + data, keys, int_threshold=0.8, prominence=50, smooth=False, window_size=7, poly_order=3 ): """function iterates through the dictionary created by load_cclv2 and locates peaks for each measurement @@ -33,12 +33,6 @@ def ccl_findpeaks( if type(data) is not dict and data["file_type"] != "ccl": print("Data is not a dictionary or was not made from ccl file") - int_threshold = 0.75 if int_threshold is None else int_threshold - prominence = 50 if prominence is None else prominence - smooth = False if smooth is None else smooth - window_size = 7 if window_size is None else window_size - poly_order = 3 if poly_order is None else poly_order - if 0 <= int_threshold <= 1: pass else: