Skip to content

Misleading note in legacy method .pick_channels #12969

Closed

Description

@sappelhoff

The channel names given are assumed to be a set, i.e. the order
does not matter. The original order of the channels is preserved.
You can use ``reorder_channels`` to set channel order if necessary.

Not entirely sure, but isn't this note a little misleading, as the order of ch_names does matter when ordered=True is passed?

I think the note should at least mention the ordered parameter.

https://mne.tools/stable/generated/mne.io.Raw.html#mne.io.Raw.pick_channels

Activity

  1. changed the title [-]Misleading note in legacy function[/-] [+]Misleading note in legacy method `.pick_channels`[/+] on Nov 15, 2024
  2. larsoner commented on Nov 18, 2024

    @larsoner
    Member

    Yes I think this is a holdover from back when the default was ordered=False (and even before that when the ordered kwarg didn't even exist!)

  3. added this to the 1.9 milestone on Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions