You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@agramfort did you think of anything in particular in addition to the functions in pick.py I mentioned above? I think we should go through the whole module and choose what to refactor and what to leave alone.
Currently the mapping between channel type and FIFF constants is implemented multiple times (at least in mne.io.pick.get_channel_types and mne.io.meas_info._kind_dict). There should be only one place where this mapping is defined.
Activity
agramfort commentedon Jan 1, 2018
cbrnr commentedon Jan 8, 2018
@agramfort did you think of anything in particular in addition to the functions in
pick.pyI mentioned above? I think we should go through the whole module and choose what to refactor and what to leave alone.agramfort commentedon Jan 8, 2018
agramfort commentedon Aug 4, 2018
@cbrnr I am not sure what you had in mind here? can you point to a code duplication or possible inconsistency?
cbrnr commentedon Aug 6, 2018
Currently the mapping between channel type and FIFF constants is implemented multiple times (at least in
mne.io.pick.get_channel_typesandmne.io.meas_info._kind_dict). There should be only one place where this mapping is defined.agramfort commentedon Aug 6, 2018
larsoner commentedon Mar 4, 2020
We'll want to do this at the start of a new release cycle rather than right before release so I'm bumping to 0.21
closes mne-tools#4851
closes mne-tools#4851
closes mne-tools#4851