[Bugfix] Save only real determined onsets.
This commit is contained in:
parent
2a0cb9f6c8
commit
9ee32ee95e
@ -196,7 +196,8 @@ class Data(object):
|
|||||||
for i in range(len(evtdata_copy.picks)):
|
for i in range(len(evtdata_copy.picks)):
|
||||||
if evtdata_copy.picks[i].phase_hint[0] == 'P':
|
if evtdata_copy.picks[i].phase_hint[0] == 'P':
|
||||||
if evtdata_copy.picks[i].time_errors['lower_uncertainty'] >= upperErrors[0] or \
|
if evtdata_copy.picks[i].time_errors['lower_uncertainty'] >= upperErrors[0] or \
|
||||||
evtdata_copy.picks[i].time_errors['upper_uncertainty'] >= upperErrors[0]:
|
evtdata_copy.picks[i].time_errors['upper_uncertainty'] >= upperErrors[0] or \
|
||||||
|
evtdata_copy.picks[i].time_errors['uncertainty'] == None:
|
||||||
print("Uncertainty exceeds or equal adjusted upper time error!")
|
print("Uncertainty exceeds or equal adjusted upper time error!")
|
||||||
print("Adjusted uncertainty: {}".format(upperErrors[0]))
|
print("Adjusted uncertainty: {}".format(upperErrors[0]))
|
||||||
print("Pick uncertainty: {}".format(
|
print("Pick uncertainty: {}".format(
|
||||||
@ -209,7 +210,8 @@ class Data(object):
|
|||||||
break
|
break
|
||||||
if evtdata_copy.picks[i].phase_hint[0] == 'S':
|
if evtdata_copy.picks[i].phase_hint[0] == 'S':
|
||||||
if evtdata_copy.picks[i].time_errors['lower_uncertainty'] >= upperErrors[1] or \
|
if evtdata_copy.picks[i].time_errors['lower_uncertainty'] >= upperErrors[1] or \
|
||||||
evtdata_copy.picks[i].time_errors['upper_uncertainty'] >= upperErrors[1]:
|
evtdata_copy.picks[i].time_errors['upper_uncertainty'] >= upperErrors[1] or \
|
||||||
|
evtdata_copy.picks[i].time_errors['uncertainty'] == None:
|
||||||
print("Uncertainty exceeds or equal adjusted upper time error!")
|
print("Uncertainty exceeds or equal adjusted upper time error!")
|
||||||
print("Adjusted uncertainty: {}".format(upperErrors[1]))
|
print("Adjusted uncertainty: {}".format(upperErrors[1]))
|
||||||
print("Pick uncertainty: {}".format(
|
print("Pick uncertainty: {}".format(
|
||||||
|
Loading…
Reference in New Issue
Block a user