From 254f0abcdec99108ad77de84f0eb0dce3b961f57 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Sat, 21 Mar 2020 14:42:37 -0700 Subject: [PATCH] closes #7487 (rename get_channel_types -> get_channel_type_constants) --- mne/io/pick.py | 2 +- mne/io/tests/test_pick.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mne/io/pick.py b/mne/io/pick.py index 065665e1f5b..0967b0c94d8 100644 --- a/mne/io/pick.py +++ b/mne/io/pick.py @@ -15,7 +15,7 @@ _check_option) -def get_channel_types(): +def get_channel_type_constants(): """Return all known channel types. Returns diff --git a/mne/io/tests/test_pick.py b/mne/io/tests/test_pick.py index 54eaa5304f6..2258dc75137 100644 --- a/mne/io/tests/test_pick.py +++ b/mne/io/tests/test_pick.py @@ -14,7 +14,7 @@ read_info) from mne.io.pick import (channel_indices_by_type, channel_type, pick_types_forward, _picks_by_type, _picks_to_idx, - get_channel_types, _DATA_CH_TYPES_SPLIT, + get_channel_type_constants, _DATA_CH_TYPES_SPLIT, _contains_ch_type, pick_channels_cov, _get_channel_types) from mne.io.constants import FIFF @@ -71,7 +71,7 @@ def _channel_type_old(info, idx): # iterate through all defined channel types until we find a match with ch # go in order from most specific (most rules entries) to least specific channel_types = sorted( - get_channel_types().items(), key=lambda x: len(x[1]))[::-1] + get_channel_type_constants().items(), key=lambda x: len(x[1]))[::-1] for t, rules in channel_types: for key, vals in rules.items(): # all keys must match the values if ch.get(key, None) not in np.array(vals):