{"action":"opened","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/4612","repository_url":"https://api.github.com/repos/mne-tools/mne-python","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/4612/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/4612/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/4612/events","html_url":"https://github.com/mne-tools/mne-python/issues/4612","id":260837273,"number":4612,"title":"BUG: plot_projs_topomap throws RT error for EEG layout","user":{"login":"kambysese","id":4381290,"avatar_url":"https://avatars1.githubusercontent.com/u/4381290?v=4","gravatar_id":"","url":"https://api.github.com/users/kambysese","html_url":"https://github.com/kambysese","followers_url":"https://api.github.com/users/kambysese/followers","following_url":"https://api.github.com/users/kambysese/following{/other_user}","gists_url":"https://api.github.com/users/kambysese/gists{/gist_id}","starred_url":"https://api.github.com/users/kambysese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kambysese/subscriptions","organizations_url":"https://api.github.com/users/kambysese/orgs","repos_url":"https://api.github.com/users/kambysese/repos","events_url":"https://api.github.com/users/kambysese/events{/privacy}","received_events_url":"https://api.github.com/users/kambysese/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-27T03:41:49Z","updated_at":"2017-09-27T03:41:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Here is the gist I used to reproduce the error with sample data\r\n```\r\nimport mne\r\nfrom mne.datasets import sample\r\nfrom mne.preprocessing import compute_proj_ecg, compute_proj_eog\r\n\r\n# getting some data ready\r\ndata_path = sample.data_path()\r\nraw_fname = data_path + '/MEG/sample/sample_audvis_filt-0-40_raw.fif'\r\n\r\nraw = mne.io.read_raw_fif(raw_fname, preload=True)\r\nraw.set_eeg_reference()\r\nraw.pick_types(meg=True, ecg=True, eog=True, stim=True)\r\nprojs, events = compute_proj_eog(raw, n_grad=1, n_mag=1, n_eeg=1)\r\nprint(projs)\r\n\r\nmne.viz.plot_projs_topomap(projs)\r\n```\r\n\r\nHere is the trace\r\n\r\n> Traceback (most recent call last):\r\n> File \"/home/ktavabi/miniconda3/envs/py2.7/lib/python2.7/site-packages/IPython/core/interactiveshell.py\", line 2881, in run_code\r\n> exec(code_obj, self.user_global_ns, self.user_ns)\r\n> File \"\", line 5, in \r\n> mne.viz.plot_projs_topomap(projs)\r\n> File \"/home/ktavabi/Projects/mne-python/mne/viz/topomap.py\", line 264, in plot_projs_topomap\r\n> % proj['desc'])\r\n> RuntimeError: Cannot find a proper layout for projection Average EEG reference\r\n \r\n@larsoner \r\n"}}
{"actor":{"display_login":"kambysese"}}