Removed right-side picking to stabilize algorithm.
This commit is contained in:
parent
8066bd2f01
commit
b7795ca562
@ -476,16 +476,16 @@ class PragPicker(AutoPicker):
|
|||||||
cfpick_r = 0
|
cfpick_r = 0
|
||||||
cfpick_l = 0
|
cfpick_l = 0
|
||||||
lpickwindow = int(round(self.PickWindow / self.dt))
|
lpickwindow = int(round(self.PickWindow / self.dt))
|
||||||
for i in range(max(np.insert(ipick, 0, 2)), min([ipick1 + lpickwindow + 1, len(self.cf) - 1])):
|
#for i in range(max(np.insert(ipick, 0, 2)), min([ipick1 + lpickwindow + 1, len(self.cf) - 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_r = self.Tcf[i]
|
# pick_r = self.Tcf[i]
|
||||||
self.Pick = pick_r
|
# self.Pick = pick_r
|
||||||
flagpick_l = 1
|
# flagpick_l = 1
|
||||||
cfpick_r = self.cf[i]
|
# cfpick_r = self.cf[i]
|
||||||
break
|
# break
|
||||||
|
|
||||||
# now we look to the left
|
# now we look to the left
|
||||||
if len(self.cf) > ipick1 + 1:
|
if len(self.cf) > ipick1 + 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user