From cd83c99034963cead61dc9c2e1b2df36a2833544 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Sat, 26 Aug 2017 01:55:16 +0200 Subject: [PATCH] [bugfix] wdfit2 referenced before set if wadaticheck had < 3 good picks --- pylot/core/pick/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index 1ebfdbd5..0dce76fd 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -654,6 +654,7 @@ def wadaticheck(pickdic, dttolerance, iplot=0, fig_dict=None): print("###############################################") print("wadatacheck: Not enough checked S-P times available!") print("Skip Wadati check!") + wdfit2 = None checkedonsets = pickdic