[update] autopicker - obspyDMT (WIP)

This commit is contained in:
2018-06-20 11:47:10 +02:00
parent 47d6aeabff
commit 08124174b1
3 changed files with 33 additions and 13 deletions

View File

@@ -283,6 +283,8 @@ def autopickstation(wfstream, pickparam, verbose=False,
if use_taup is True:
Lc = np.inf
print('autopickstation: use_taup flag active.')
if not metadata:
metadata = [None, None]
if not metadata[1]:
print('Warning: Could not use TauPy to estimate onsets as there are no metadata given.')
else:

View File

@@ -78,7 +78,7 @@ class CharacteristicFunction(object):
return self.cut
def setCut(self, cut):
self.cut = cut
self.cut = (int(cut[0]), int(cut[1]))
def getTime1(self):
return self.t1