mne-qt-browser icon indicating copy to clipboard operation
mne-qt-browser copied to clipboard

Non-data channels are not displayed when browsing Epochs

Open hoechenberger opened this issue 3 years ago • 3 comments

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: Screen Shot 2022-04-05 at 14 53 28

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: Screen Shot 2022-04-05 at 14 53 32

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: Screen Shot 2022-04-05 at 14 57 06

hoechenberger avatar Apr 05 '22 12:04 hoechenberger

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: Screen Shot 2022-04-05 at 14 53 28

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: Screen Shot 2022-04-05 at 14 53 32

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: Screen Shot 2022-04-05 at 14 57 06

Hello @hoechenberger , I would like to work on this issue as part of GSOC preparation. Could you please assign it to me?

Jaiswal0507 avatar Feb 18 '25 07:02 Jaiswal0507

Hello @Jaiswal0507, thanks for your interest. I'll defeat this to @marsipu and @larsoner :)

hoechenberger avatar Feb 18 '25 08:02 hoechenberger

@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!

larsoner avatar Feb 18 '25 15:02 larsoner