Skip to content

De-duplicate channel types #4851

@cbrnr

Description

@cbrnr

As a follow-up to #4842, we should de-duplicate various definitions of valid channel types. Currently, these can be found in

  • mne.io.pick: get_channel_types, pick_types, _PICK_TYPES_DATA_DICT, ... There are many more possibly relevant objects, but I need feedback which should be refactored and which should be left as is.
  • mne.io.meas_info: _kind_dict

Anywhere else I forgot?

There should be only one place where valid channel types are defined. I suggest using mne.io.pick (currently it is inside get_channel_types, but this could be moved to a global dict in this module if desired.

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