From f814ec8656c28f7b87587af711953253ce8a98a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Thu, 18 May 2017 13:53:22 +0200 Subject: [PATCH] Bugfix: if no plotflag set, fig was not assigned. --- pylot/RELEASE-VERSION | 2 +- pylot/core/analysis/magnitude.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index b145ecf4..afd83baf 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -4623-dirty +7715-dirty diff --git a/pylot/core/analysis/magnitude.py b/pylot/core/analysis/magnitude.py index 3e68bed1..dd5e2d6b 100644 --- a/pylot/core/analysis/magnitude.py +++ b/pylot/core/analysis/magnitude.py @@ -201,6 +201,7 @@ class RichterMagnitude(Magnitude): "mm".format(st[0].stats.station, wapp)) # check for plot flag (for debugging only) + fig = None if self.plot_flag > 1: st.plot() fig = plt.figure()