[bugfix] add default values when wadaticheck fails

Else plotting crashes due to unset variables
This commit is contained in:
Darius Arnold 2017-08-31 21:58:13 +02:00
parent 699575f9d5
commit e6d5dccb74

View File

@ -652,8 +652,10 @@ def wadaticheck(pickdic, dttolerance, iplot=0, fig_dict=None):
print("wadatacheck: Skipped %d S pick(s)" % ibad)
else:
print("###############################################")
print("wadatacheck: Not enough checked S-P times available!")
print("wadaticheck: Not enough checked S-P times available!")
print("Skip Wadati check!")
wfitflag = 1
wdfit2 = None
checkedonsets = pickdic