[bugfix] ibad referenced before assignment
This commit is contained in:
parent
7522201e06
commit
961be8ccbc
@ -592,6 +592,8 @@ def wadaticheck(pickdic, dttolerance, iplot=0, fig_dict=None):
|
|||||||
Spicks = []
|
Spicks = []
|
||||||
SPtimes = []
|
SPtimes = []
|
||||||
stations = []
|
stations = []
|
||||||
|
ibad = 0
|
||||||
|
|
||||||
for key in list(pickdic.keys()):
|
for key in list(pickdic.keys()):
|
||||||
if pickdic[key]['P']['weight'] < 4 and pickdic[key]['S']['weight'] < 4:
|
if pickdic[key]['P']['weight'] < 4 and pickdic[key]['S']['weight'] < 4:
|
||||||
# calculate S-P time
|
# calculate S-P time
|
||||||
@ -622,7 +624,6 @@ def wadaticheck(pickdic, dttolerance, iplot=0, fig_dict=None):
|
|||||||
badstations = []
|
badstations = []
|
||||||
# calculate deviations from Wadati regression
|
# calculate deviations from Wadati regression
|
||||||
ii = 0
|
ii = 0
|
||||||
ibad = 0
|
|
||||||
for key in list(pickdic.keys()):
|
for key in list(pickdic.keys()):
|
||||||
if 'SPt' in pickdic[key]:
|
if 'SPt' in pickdic[key]:
|
||||||
stations.append(key)
|
stations.append(key)
|
||||||
|
Loading…
Reference in New Issue
Block a user