Skip to content

Commit 4a1de44

Browse files
authored
Merge pull request #434 from Mentalab-hub/hotfix-missing-filter-class-var
hotfix for missing cutoff-freq variable in filt class
2 parents 687b6f4 + 6b85bfd commit 4a1de44

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/explorepy/filters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def __init__(self, cutoff_freq, filter_type, s_rate, n_chan, order=5):
3939
self.s_rate = float(s_rate)
4040
self.filter_type = filter_type
4141
self.filter_param = None
42+
self.cutoff_freq = cutoff_freq
4243
order = 2 if self.s_rate >= 1000 else order
4344
a, b, zi = self.get_filter_coeffs(cutoff_freq, filter_type, s_rate, n_chan, order)
4445
self.filter_param = {'a': a, 'b': b, 'zi': zi}

0 commit comments

Comments
 (0)