[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,6 +486,7 @@ 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()
if filteroptions:
data.filter(**filteroptions)
wfdata.filter(**filteroptions)
@ -531,6 +532,7 @@ 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()
if filteroptions:
data.filter(**filteroptions)
wfdata.filter(**filteroptions)