[change] calculate slope from two or more samples

This commit is contained in:
Darius Arnold 2017-08-21 13:20:05 +02:00
parent c454640619
commit 9dfb4f37a5

View File

@ -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 ...")