[bugfix] mixed up > and <

This commit is contained in:
Marcel Paffrath 2019-04-12 15:30:00 +02:00
parent 3806026438
commit b228467097

View File

@ -488,7 +488,7 @@ class PragPicker(AutoPicker):
if len(self.cf) > ipick1 + 1: if len(self.cf) > ipick1 + 1:
for i in range(ipick1, max([ipick1 - lpickwindow + 1, 2]), -1): for i in range(ipick1, max([ipick1 - lpickwindow + 1, 2]), -1):
# local minimum # local minimum
if self.cf[i + 1] > self.cf[i] >= self.cf[i - 1]: if self.cf[i + 1] > self.cf[i] <= self.cf[i - 1]:
if cfsmooth[i - 1] * (1 + aus1) >= cfsmooth[i]: if cfsmooth[i - 1] * (1 + aus1) >= cfsmooth[i]:
if cfpick1 >= self.cf[i]: if cfpick1 >= self.cf[i]:
pick_l = self.Tcf[i] pick_l = self.Tcf[i]