From 2e24c406ac1ae986d5c2e637f18aa32426fd769d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Tue, 15 Aug 2017 15:10:36 +0200 Subject: [PATCH 1/2] Use abs instead of RMS. --- pylot/core/pick/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index c6d5b014..a9955553 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -744,7 +744,7 @@ def checksignallength(X, pick, TSNR, minsiglength, nfac, minpercent, iplot=0, fi else: x1 = X[0].data ilen = len(x1) - rms = np.sqrt(np.power(2, x1)) + rms = abs(x1) t = np.arange(0, ilen / X[0].stats.sampling_rate, X[0].stats.delta) From 43cf9c4e3d808ea1f10d5e04bef2962bb254f9bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Tue, 15 Aug 2017 15:22:10 +0200 Subject: [PATCH 2/2] Remove possible underscores in station names. --- QtPyLoT.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index 6c35ea12..55561bb8 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -74,7 +74,7 @@ from pylot.core.util.connection import checkurl from pylot.core.util.dataprocessing import read_metadata, restitute_data from pylot.core.util.utils import fnConstructor, getLogin, \ full_range, readFilterInformation, trim_station_components, check4gaps, make_pen, pick_color_plt, \ - pick_linestyle_plt, identifyPhase, loopIdentifyPhase + pick_linestyle_plt, identifyPhase, loopIdentifyPhase, remove_underscores from pylot.core.util.event import Event from pylot.core.io.location import create_creation_info, create_event from pylot.core.util.widgets import FilterOptionsDialog, NewEventDlg, \ @@ -1370,6 +1370,8 @@ class MainWindow(QMainWindow): self.fnames = self.getWFFnames_from_eventbox() self.data.setWFData(self.fnames) wfdat = self.data.getWFData() # all available streams + # remove possible underscores in station names + wfdat = remove_underscores(wfdat) check4gaps(wfdat) # trim station components to same start value trim_station_components(wfdat, trim_start=True, trim_end=False)