From d9536094195842f99ca3038e34cb1f0a05c84d8d Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Wed, 7 Sep 2016 12:17:51 +0200 Subject: [PATCH] [bugfix] just parse filter options if available --- pylot/core/util/widgets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 63458d80..7c3c7690 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -942,7 +942,8 @@ class PickDlg(QDialog): # copy and filter data for earliest and latest possible picks wfdata = self.getWFData().copy().select(channel=channel) - wfdata.filter(**filteroptions) + if filteroptions: + wfdata.filter(**filteroptions) # get earliest and latest possible pick and symmetric pick error [epp, lpp, spe] = earllatepicker(wfdata, 1.5, (5., .5, 2.), pick)