{"action":"closed","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/2805","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2805/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2805/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2805/events","html_url":"https://github.com/mne-tools/mne-python/issues/2805","id":127783573,"number":2805,"title":"BUG: pick_types with KIT","user":{"login":"kingjr","id":4881164,"avatar_url":"https://avatars.githubusercontent.com/u/4881164?v=3","gravatar_id":"","url":"https://api.github.com/users/kingjr","html_url":"https://github.com/kingjr","followers_url":"https://api.github.com/users/kingjr/followers","following_url":"https://api.github.com/users/kingjr/following{/other_user}","gists_url":"https://api.github.com/users/kingjr/gists{/gist_id}","starred_url":"https://api.github.com/users/kingjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingjr/subscriptions","organizations_url":"https://api.github.com/users/kingjr/orgs","repos_url":"https://api.github.com/users/kingjr/repos","events_url":"https://api.github.com/users/kingjr/events{/privacy}","received_events_url":"https://api.github.com/users/kingjr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-20T21:05:27Z","updated_at":"2016-01-25T08:25:46Z","closed_at":"2016-01-25T08:25:46Z","body":"In `pick_type()` when there's a bad channel:\r\n\r\n```\r\nfrom mne.channels import find_layout\r\nfrom mne.io import read_raw_kit\r\nfname = 'mne-python/mne/io/kit/tests/data/test.sqd'\r\nraw = read_raw_kit(fname, preload=True)\r\nprint('raw', find_layout(raw.info))\r\nraw.pick_types(meg=True)\r\nprint('raw pick_type', find_layout(raw.info))\r\nraw.info['bads'] += ['MEG 002']\r\nprint('raw bad', find_layout(raw.info))\r\nraw.pick_types(meg=True)\r\nprint('raw bad pick_type', find_layout(raw.info))\r\n```\r\n\r\ngives:\r\n\r\n```\r\n('raw', <Layout | KIT-157 - Channels: MEG 001, MEG 002, MEG 003 ...>)\r\n('raw pick_type', <Layout | KIT-157 - Channels: MEG 001, MEG 002, MEG 003 ...>)\r\n('raw bad', <Layout | KIT-157 - Channels: MEG 001, MEG 002, MEG 003 ...>)\r\n('raw bad pick_type', None)\r\n```\r\n\r\nThis makes the whole plotting function incompatible once a sensor is rejected.\r\n\r\n@Eric89GXL @teonlamont \r\n"}}