Update moment magnitudes before calculating network magnitude.

This commit is contained in:
Ludger Küperkoch 2019-10-28 16:51:04 +01:00
parent ceb33bf59e
commit 98e429d8fd

View File

@ -3386,8 +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)
moment_mag = moment_mag.net_magnitude()
event_moment_mag = moment_mag.updated_event()
moment_mag.updated_event()
event_moment_mag = moment_mag.net_magnitude()
if event_moment_mag is not None:
print("Network moment magnitude: %4.1f" % event_moment_mag.mag)