Re-implemented magnitude calculation within manual picking/location, yet on-going work

This commit is contained in:
Ludger Küperkoch
2019-06-04 12:29:53 +02:00
parent 102b7eafe3
commit bb313f0f49
3 changed files with 25 additions and 18 deletions

View File

@@ -542,6 +542,9 @@ class Data(object):
information on the event to the actual data
:param event:
"""
if event is None:
print("applyEvent: Received None")
return
if self.isNew():
self.setEvtData(event)
else:

View File

@@ -644,11 +644,11 @@ def restitute_data(data, metadata, unit='VEL', force=False, ncores=0):
# better try restitution for smaller subsets of data (e.g. station by
# station)
# if len(restflag) > 0:
# restflag = bool(np.all(restflag))
# else:
# restflag = False
return data
if len(restflag) > 0:
restflag = bool(np.all(restflag))
else:
restflag = False
return data, restflag
def get_prefilt(trace, tlow=(0.5, 0.9), thi=(5., 2.), verbosity=0):