Skip to content

Is it possible to put filter in SigVisualizer? #19

Description

@iPsych

I am trying to put the filtering or PSD calculation in the middle of SigVisualizer.
In the paintwidget.py, where is the best place to put the some code lines using scipy.signal and mne.filter?

from scipy.signal import lfilter, lfilter_zi
from mne.filter import create_filter

window = 10
n_samples = int(self.sfreq * window)
#self.sfreq=params['metadata']['srate']
#n_chans=params['metadata']['ch_count']

self.data_f = np.zeros((n_samples, self.n_chans))
self.data = np.zeros((n_samples, self.n_chans))
self.af = [1.0]
self.bf = create_filter(self.data_f.T, self.sfreq, 3, 40.,
                            method='fir')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions