Bugfix: if no plotflag set, fig was not assigned.

This commit is contained in:
Ludger Küperkoch 2017-05-18 13:53:22 +02:00
parent 77153bc8e9
commit f814ec8656
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
4623-dirty
7715-dirty

View File

@ -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()