From 0ef2afa775825c4bc3b8db8def85bff68e54b179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Fri, 25 Oct 2019 16:20:48 +0200 Subject: [PATCH] Update of event object for moment magntiude was missing. --- PyLoT.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PyLoT.py b/PyLoT.py index b9919384..edb6a9a2 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -3386,7 +3386,8 @@ class MainWindow(QMainWindow): # calculate moment magnitude moment_mag = MomentMagnitude(corr_wf, self.get_data().get_evt_data(), self.inputs.get('vp'), self.inputs.get('Qp'), self.inputs.get('rho'), verbosity=True) - event_moment_mag = moment_mag.net_magnitude() + moment_mag = moment_mag.net_magnitude() + event_moment_mag = moment_mag.updated_event() if event_moment_mag is not None: print("Network moment magnitude: %4.1f" % event_moment_mag.mag)