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