Hello!
My raw has acceleration channels (bio type) added to EEG data and I tried to use raw.compute_psd()
on it. Tried to use raw.compute_psd(picks = [])
with channel names, type and preselected channels with pick_channels()
and none of them works.
I got different kinds of Errors:
ValueError: picks (NoneNone, treated as "data") yielded no channels, consider passing picks explicitly
or
ValueError: All picks must be < n_channels (67), got 67
or
ValueError: picks (['accx', 'accy', 'accz']) could not be interpreted as channel names (no channel "['accx', 'accy', 'accz']"), channel types (no type "accx"), or a generic type (just "all" or "data")
I had a similar issue with mne.filter.notch_filter and had to use raw.notch_filter(...)
because mne.filter.notch_filter
is for np.ndarray
s only. Is this the case here as well? What could I use instead?
The legacy version mne.viz.plot_raw_psd(raw, picks=['accx', 'accy', 'accz'])
works but with a slight bug (?). We work with 2 Hz movements, and on the psd plot it shows the peek slightly on the left.
Thank you for any help!