Debugging.
This commit is contained in:
parent
2c9ad97a4a
commit
54fd3004b4
@ -23,7 +23,7 @@ import matplotlib.pyplot as plt
|
||||
from pylot.core.pick.utils import *
|
||||
from pylot.core.pick.CharFuns import CharacteristicFunction
|
||||
import warnings
|
||||
import pdb
|
||||
|
||||
class AutoPicking(object):
|
||||
'''
|
||||
Superclass of different, automated picking algorithms applied on a CF determined
|
||||
@ -327,7 +327,8 @@ class PragPicker(AutoPicking):
|
||||
#at first we look to the right until the end of the pick window is reached
|
||||
flagpick_r = 0
|
||||
flagpick_l = 0
|
||||
flagpick = 0
|
||||
cfpick_r = 0
|
||||
cfpick_l = 0
|
||||
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])):
|
||||
if self.cf[i + 1] > self.cf[i] and self.cf[i - 1] >= self.cf[i]:
|
||||
@ -357,6 +358,9 @@ class PragPicker(AutoPicking):
|
||||
elif flagpick_l > 0 and flagpick_r > 0 and cfpick_l >= cfpick_r:
|
||||
self.Pick = pick_r
|
||||
pickflag = 1
|
||||
elif flagpick_l == 0 and flagpick_r > 0 and cfpick_l >= cfpick_r:
|
||||
self.Pick = pick_l
|
||||
pickflag = 1
|
||||
else:
|
||||
print 'PragPicker: Could not find reliable onset!'
|
||||
self.Pick = None
|
||||
|
Loading…
Reference in New Issue
Block a user