question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: incorrect freq bandwidth in FilterEstimator

See original GitHub issue

@trachelr I’m not entirely sure but I think there is a problem with the transition bandwidths in your FilterEstimator.

Can you confirm or infirm that the low and high bandwidth are adequate? https://github.com/mne-tools/mne-python/blob/master/mne/decoding/transformer.py#L484

If not, I’ll mark the issue as a bug, but don’t worry about submitting a PR soon (although you may), we’re about to refactor all decoding transformers and estimators.

If it’s working as intended, well, my bad…

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
jasmainakcommented, Jul 11, 2016

@kingjr maybe this could be combined with #3395 and fixed in a single PR

1reaction
kingjrcommented, May 26, 2016

@jasmainak We’ll do our best 😉 I think one possible solution would be to recognize the input type (epochs, 2D array, 3D array).

@Eric89GXL Ok, I’ll open an issue, but I have too many PRs to finish first.

Regarding the present issue, do you agree that the following lines seem weird:


if self.l_freq is None and self.h_freq is not None:
    epochs_data = \
        low_pass_filter(epochs_data, self.info['sfreq'], self.h_freq,
                        filter_length=self.filter_length,
                        trans_bandwidth=self.l_trans_bandwidth,  # XXX <=====
                        method=self.method, iir_params=self.iir_params,
                        picks=self.picks, n_jobs=self.n_jobs,
                        copy=False, verbose=False)

if self.l_freq is not None and self.h_freq is None:
    epochs_data = \
        high_pass_filter(epochs_data, self.info['sfreq'], self.l_freq,
                         filter_length=self.filter_length,
                         trans_bandwidth=self.h_trans_bandwidth, # XXX <=====
                         method=self.method,
                         iir_params=self.iir_params,
                         picks=self.picks, n_jobs=self.n_jobs,
                         copy=False, verbose=False)

if self.l_freq is not None and self.h_freq is not None:
    if self.l_freq < self.h_freq:
        epochs_data = \
            band_pass_filter(epochs_data, self.info['sfreq'],
                             self.l_freq, self.h_freq,
                             filter_length=self.filter_length,
                             l_trans_bandwidth=self.l_trans_bandwidth,  # XXX <=====
                             h_trans_bandwidth=self.h_trans_bandwidth,  # XXX <=====
                             method=self.method,
                             iir_params=self.iir_params,
                             picks=self.picks, n_jobs=self.n_jobs,
                             copy=False, verbose=False)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Reference Data for Engineers: Radio, Electronics, Computers ...
The matched - filter estimator passes v ( t ) through a filter with impulse ... Similar remarks apply to the problem of...
Read more >
Theory of Remote Image Formation - Page 442 - Google Books Result
For any covariance stationary process , the matched - filter estimator is the ... problem because it assumes that phase is known even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found