From b2284670971697f48a2b3382f3228628a5fdb59b Mon Sep 17 00:00:00 2001 From: Marcel Date: Fri, 12 Apr 2019 15:30:00 +0200 Subject: [PATCH] [bugfix] mixed up > and < --- 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 3e7a34bd..af17acf6 100644 --- a/pylot/core/pick/picker.py +++ b/pylot/core/pick/picker.py @@ -488,7 +488,7 @@ class PragPicker(AutoPicker): if len(self.cf) > ipick1 + 1: for i in range(ipick1, max([ipick1 - lpickwindow + 1, 2]), -1): # 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 cfpick1 >= self.cf[i]: pick_l = self.Tcf[i]