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.
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_dictAnywhere else I forgot?
There should be only one place where valid channel types are defined. I suggest using
mne.io.pick(currently it is insideget_channel_types, but this could be moved to a global dict in this module if desired.