Skip to content

mne.read_selection() returning funny channels #8865

Closed

Description

@dnacombo

Describe the bug

trying to select channels from an EEG dataset.

Steps to reproduce

l = ['Vertex', 'temporal', 'parietal', 'occipital', 'frontal']

ll = mne.read_selection(name=l, info=r.info)

returns a list with Neuromag channels although there are only EEG channels (EGI) in the dataset.

@hoechenberger

Activity

  1. hoechenberger commented on Feb 12, 2021

    @hoechenberger
    Member

    mne.read_selection() shouldn't return channels that don't appear in info, so I'd consider this a bug

  2. larsoner commented on Feb 12, 2021

    @larsoner
    Member

    IIRC read_selection is only meant to be used with Neuromag MEG channels. We should probably also update the docstring to say this in addition to raising an error

  3. cbrnr commented on Feb 12, 2021

    @cbrnr
    Contributor

    👍 - I've never heard of that function, and after reading its docs I couldn't figure out what exactly it should be used for.

  4. agramfort commented on Feb 12, 2021

    @agramfort
    SponsorMember
  5. drammock commented on Feb 12, 2021

    @drammock
    Member

    Maybe worth a deprecation and a name change to read_neuromag_selection?

  6. cbrnr commented on Feb 12, 2021

    @cbrnr
    Contributor

    👍 for deprecating and renaming, and maybe also moving to the channels module?

  7. hoechenberger commented on Feb 12, 2021

    @hoechenberger
    Member

    I will look into this.

  8. added 5 commits that reference this issue on Feb 13, 2021
    656498c
    47e0fbd
    e5a4715
    bc50419
    dad6bb5
  9. added a commit that references this issue on Feb 18, 2021
    53f1b85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions