[fixes #186] filteroptions are only parsed if they are not NoneType
This commit is contained in:
parent
6f26ab07b7
commit
18785edf68
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user