Skip to content

Conversation

@agramfort
Copy link
Member

closes #11312

ch_names = np.array(one_evoked.ch_names)[picks].tolist()
ch_types = [t for t in _get_channel_types(info, picks=picks, unique=True)
if t in _DATA_CH_TYPES_SPLIT + ('misc',)] # miscICA
if t in _DATA_CH_TYPES_SPLIT + ('misc', 'emg')] # miscICA
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am also wondering if we should simply make EMG channels data channels...

@hoechenberger
Copy link
Member

What sets EMG channels apart from resp, ecg, and eog? Why would you want to treat EMG more like a data channel than any of the others?

@agramfort
Copy link
Member Author

agramfort commented Nov 13, 2022 via email

@larsoner
Copy link
Member

I double checked our docs 📝

https://mne.tools/dev/glossary.html#term-data-channels

These [data channels] contain electrophysiological data from the brain, as opposed to other channel types such as EOG, ECG, ...

We can add EMG to this list of "not data channels" if it would help :)

@larsoner larsoner merged commit e65e5e5 into mne-tools:main Nov 17, 2022
@larsoner larsoner deleted the plot_image_emg branch November 17, 2022 15:52
@larsoner larsoner restored the plot_image_emg branch November 17, 2022 15:52
@larsoner
Copy link
Member

Thanks @agramfort !

larsoner added a commit to ruuskas/mne-python that referenced this pull request Nov 17, 2022
* upstream/main:
  fix epochs.plot_image for EMG data (mne-tools#11322)
  fix fontawesome icon display (mne-tools#11328)
  [DOC, MRG] fix/improve documentation of n_jobs for apply_function (mne-tools#11325)
  [MAINT, MRG] fix is_mesa (mne-tools#11313)
  BUG: Fix bug with parallel progress bars (mne-tools#11311)
  BUG: Fix bug with report replacement (mne-tools#11318)
  MAINT: Fix docs (mne-tools#11317)
  Fix typo in changelog (mne-tools#11315)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

epoch.plot_image() for emg channels results in error

3 participants