Update of event object for moment magntiude was missing.

This commit is contained in:
Ludger Küperkoch 2019-10-25 16:20:48 +02:00
parent dd05d46be7
commit 0ef2afa775

View File

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