Skip to content

Commit

Permalink
make it possible to set filter corners via config file
Browse files Browse the repository at this point in the history
  • Loading branch information
megies committed Nov 10, 2017
1 parent 80bc01d commit dd36548
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions obspyck/example.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ filter = false
filter_type = bandpass
filter_highpass = 0.01
filter_lowpass = 0.05
filter_corners = 3
sta = 0.5
lta = 10.0
ar_f1 = 1.0
Expand Down
2 changes: 2 additions & 0 deletions obspyck/obspyck.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ def __init__(self, clients, streams, options, keys, config):
self.config.getfloat("gui_defaults", "filter_highpass"))
self.widgets.qDoubleSpinBox_lowpass.setValue(
self.config.getfloat("gui_defaults", "filter_lowpass"))
self.widgets.qDoubleSpinBox_corners.setValue(
self.config.getint("gui_defaults", "filter_corners"))
self.widgets.qDoubleSpinBox_sta.setValue(
self.config.getfloat("gui_defaults", "sta"))
self.widgets.qDoubleSpinBox_lta.setValue(
Expand Down

0 comments on commit dd36548

Please sign in to comment.