From e6d5dccb742664dce77f36e984f0d36fdf101486 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Thu, 31 Aug 2017 21:58:13 +0200 Subject: [PATCH] [bugfix] add default values when wadaticheck fails Else plotting crashes due to unset variables --- pylot/core/pick/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index 006f9837..534df924 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -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