[fixes #186] filteroptions are only parsed if they are not NoneType

This commit is contained in:
Sebastian Wehling-Benatelli 2016-03-03 14:02:49 +01:00
parent 6f26ab07b7
commit 18785edf68

View File

@ -486,8 +486,9 @@ class PickDlg(QDialog):
# filter data and trace on which is picked prior to determination of SNR
phase = self.selectPhase.currentText()
filteroptions = self.getFilterOptions(phase).parseFilterOptions()
data.filter(**filteroptions)
wfdata.filter(**filteroptions)
if filteroptions:
data.filter(**filteroptions)
wfdata.filter(**filteroptions)
result = getSNR(wfdata, (noise_win, gap_win, signal_win), ini_pick, itrace)
@ -531,8 +532,9 @@ class PickDlg(QDialog):
# filter data and trace on which is picked prior to determination of SNR
phase = self.selectPhase.currentText()
filteroptions = self.getFilterOptions(phase).parseFilterOptions()
data.filter(**filteroptions)
wfdata.filter(**filteroptions)
if filteroptions:
data.filter(**filteroptions)
wfdata.filter(**filteroptions)
# determine SNR and noiselevel
result = getSNR(wfdata, (noise_win, gap_win, signal_win), ini_pick)