# band pass first to last harmonics
harmonics = noise_freq * np.arange(1, n_harm)
raw.filter(noise_freq - width, harmonics[-1] + width)
# band stop filter in between harmonics (it's not really a notch, since the
freq width is very large)
raw.notch_filter(freqs=harmonics[:-1]+noise_freq//2,
notch_widths=noise_freq - 2*width)
Hi all,
I've also been trying to figure out filtering, and getting a bit stuck
on what to do with the result of such. If I follow along above and then do
something like:
Just to follow up on this, we just added the copy param to raw.filter(),
which is now available on the dev branch. The behavior now is when
`copy=False` (default), it returns `self`. When `copy=False` it will allow
for you to assign to the same name as you did, also you can choose not
assign it and the raw file will be modified in-place.