Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make it possible to set filter corners via config file #66

Merged
merged 1 commit into from
Nov 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
master
- fix getting metadata via arclink (see #65)
- make it possible to set default filter corners via config file (see #66)

0.5.0
- add support for magnitude estimation for data fetched from an FDSN server
Expand Down
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