From 9dfb4f37a5f1952f940b963de3011e822dcf1604 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Mon, 21 Aug 2017 13:20:05 +0200 Subject: [PATCH] [change] calculate slope from two or more samples --- pylot/core/pick/picker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/pick/picker.py b/pylot/core/pick/picker.py index 1f1c3a37..1715746c 100644 --- a/pylot/core/pick/picker.py +++ b/pylot/core/pick/picker.py @@ -254,7 +254,7 @@ class AICPicker(AutoPicker): return imax = np.argmax(dataslope) iislope = islope[0][0:imax+1] - if len(iislope) <= 2: + if len(iislope) < 2: # calculate slope from initial onset to maximum of AIC function print("AICPicker: Not enough data samples left for slope calculation!") print("Calculating slope from initial onset to maximum of AIC function ...")