Re-implemented magnitude calculation within manual picking/location, yet on-going work
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user