[change] islope calculation with 2 samples

This commit is contained in:
Marcel Paffrath 2017-08-21 13:38:50 +02:00
parent e0e0be48c7
commit bdcb0ba649

View File

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