mne-qt-browser
mne-qt-browser copied to clipboard
Non-data channels are not displayed when browsing Epochs
MWE:
# %%
from pathlib import Path
import mne
sample_dir = Path(mne.datasets.sample.data_path())
sample_fname = sample_dir / 'MEG' / 'sample' / 'sample_audvis_raw.fif'
raw = mne.io.read_raw_fif(sample_fname)
raw.crop(tmax=60)
raw.pick_types(eeg=True, eog=True, stim=True)
events = mne.find_events(raw)
epochs = mne.Epochs(
raw=raw,
events=events,
)
epochs.plot()
Produces:

As you can see, I scrolled all the way to the bottom, but there are just no EOG or STIM channels listed there.
The butterfly plot looks like this:

Here, the EOG and STIM channels appear on the y axis tick labels, but there is just no data being shown.
But if I do
epochs.plot(picks='eog')
then it becomes clear that there is, in fact, data:

MWE:
%%
from pathlib import Path import mne
sample_dir = Path(mne.datasets.sample.data_path()) sample_fname = sample_dir / 'MEG' / 'sample' / 'sample_audvis_raw.fif'
raw = mne.io.read_raw_fif(sample_fname) raw.crop(tmax=60) raw.pick_types(eeg=True, eog=True, stim=True)
events = mne.find_events(raw) epochs = mne.Epochs( raw=raw, events=events, ) epochs.plot() Produces:
As you can see, I scrolled all the way to the bottom, but there are just no EOG or STIM channels listed there.
The butterfly plot looks like this:
Here, the EOG and STIM channels appear on the y axis tick labels, but there is just no data being shown.
But if I do
epochs.plot(picks='eog') then it becomes clear that there is, in fact, data:
Hello @hoechenberger , I would like to work on this issue as part of GSOC preparation. Could you please assign it to me?
Hello @Jaiswal0507, thanks for your interest. I'll defeat this to @marsipu and @larsoner :)
@Jaiswal0507 nobody else has volunteered to work on this so no need to assign it, feel free to open a PR when you get a chance!