Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-data channels are not displayed when browsing Epochs #96

Open
hoechenberger opened this issue Apr 5, 2022 · 3 comments
Open

Non-data channels are not displayed when browsing Epochs #96

hoechenberger opened this issue Apr 5, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@hoechenberger
Copy link
Member

hoechenberger commented Apr 5, 2022

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

@marsipu marsipu added the bug Something isn't working label May 13, 2022
@Jaiswal0507
Copy link

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?

@hoechenberger
Copy link
Member Author

hoechenberger commented Feb 18, 2025

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

@larsoner
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants