From 12641f8d52d92552a18b1e4db64b6d7c205bc1f8 Mon Sep 17 00:00:00 2001 From: Sebastianw Wehling-Benatelli Date: Mon, 5 Sep 2016 15:00:08 +0200 Subject: [PATCH] [refs #200] fixing some minor bugs during processing of magnitude --- QtPyLoT.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index 93360d2e..6ce2e9a7 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -962,7 +962,8 @@ class MainWindow(QMainWindow): onset = pick.time fninv = settings.value("inventoryFile", None) if fninv is None: - fninv = QFileDialog.getOpenFileName(self, self.tr("Select inventory..."), self.tr("Select file")) + fninv, _ = QFileDialog.getOpenFileName(self, self.tr( + "Select inventory..."), self.tr("Select file")) ans = QMessageBox.question(self, self.tr("Make default..."), self.tr("New inventory filename set.\n" + \ "Do you want to make it the default value?"), @@ -971,7 +972,9 @@ class MainWindow(QMainWindow): if ans == QMessageBox.Yes: settings.setValue("inventoryFile", fninv) settings.sync() - w0, fc = calcsourcespec(wf, onset, fninv, 3000., a.distance, a.azimuth, a.takeoff_angle, 60., 0) + w0, fc = calcsourcespec(wf, onset, fninv, 3000., a.distance, + a.azimuth, a.takeoff_angle, + "300f**0.8", 0) stat_mags = calcMoMw(wf, w0, 2700., 3000., a.distance, fninv) mags[station] = stat_mags mag = np.median([M[1] for M in mags.values()])