{"action":"created","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/1762","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/1762/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/1762/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/1762/events","html_url":"https://github.com/mne-tools/mne-python/pull/1762","id":55432554,"number":1762,"title":"[WIP] Added first custom_layout code. ","user":{"login":"choldgraf","id":1839645,"avatar_url":"https://avatars.githubusercontent.com/u/1839645?v=3","gravatar_id":"","url":"https://api.github.com/users/choldgraf","html_url":"https://github.com/choldgraf","followers_url":"https://api.github.com/users/choldgraf/followers","following_url":"https://api.github.com/users/choldgraf/following{/other_user}","gists_url":"https://api.github.com/users/choldgraf/gists{/gist_id}","starred_url":"https://api.github.com/users/choldgraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choldgraf/subscriptions","organizations_url":"https://api.github.com/users/choldgraf/orgs","repos_url":"https://api.github.com/users/choldgraf/repos","events_url":"https://api.github.com/users/choldgraf/events{/privacy}","received_events_url":"https://api.github.com/users/choldgraf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mne-tools/mne-python/milestones/5","html_url":"https://github.com/mne-tools/mne-python/milestones/0.9","labels_url":"https://api.github.com/repos/mne-tools/mne-python/milestones/5/labels","id":1011721,"number":5,"title":"0.9","description":null,"creator":{"login":"Eric89GXL","id":2365790,"avatar_url":"https://avatars.githubusercontent.com/u/2365790?v=3","gravatar_id":"","url":"https://api.github.com/users/Eric89GXL","html_url":"https://github.com/Eric89GXL","followers_url":"https://api.github.com/users/Eric89GXL/followers","following_url":"https://api.github.com/users/Eric89GXL/following{/other_user}","gists_url":"https://api.github.com/users/Eric89GXL/gists{/gist_id}","starred_url":"https://api.github.com/users/Eric89GXL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eric89GXL/subscriptions","organizations_url":"https://api.github.com/users/Eric89GXL/orgs","repos_url":"https://api.github.com/users/Eric89GXL/repos","events_url":"https://api.github.com/users/Eric89GXL/events{/privacy}","received_events_url":"https://api.github.com/users/Eric89GXL/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":97,"state":"open","created_at":"2015-03-09T03:10:39Z","updated_at":"2015-04-24T16:37:33Z","due_on":null,"closed_at":null},"comments":73,"created_at":"2015-01-25T22:09:49Z","updated_at":"2015-04-25T02:36:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mne-tools/mne-python/pulls/1762","html_url":"https://github.com/mne-tools/mne-python/pull/1762","diff_url":"https://github.com/mne-tools/mne-python/pull/1762.diff","patch_url":"https://github.com/mne-tools/mne-python/pull/1762.patch"},"body":"Generates layouts correctly but the aligning when using a background image isn't perfect. Maybe the problem is normalizing by non-square image? Mentioned in #1758 "},"comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/comments/96122355","html_url":"https://github.com/mne-tools/mne-python/pull/1762#issuecomment-96122355","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/1762","id":96122355,"user":{"login":"choldgraf","id":1839645,"avatar_url":"https://avatars.githubusercontent.com/u/1839645?v=3","gravatar_id":"","url":"https://api.github.com/users/choldgraf","html_url":"https://github.com/choldgraf","followers_url":"https://api.github.com/users/choldgraf/followers","following_url":"https://api.github.com/users/choldgraf/following{/other_user}","gists_url":"https://api.github.com/users/choldgraf/gists{/gist_id}","starred_url":"https://api.github.com/users/choldgraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choldgraf/subscriptions","organizations_url":"https://api.github.com/users/choldgraf/orgs","repos_url":"https://api.github.com/users/choldgraf/repos","events_url":"https://api.github.com/users/choldgraf/events{/privacy}","received_events_url":"https://api.github.com/users/choldgraf/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T02:36:46Z","updated_at":"2015-04-25T02:36:46Z","body":"Ohhhhh that's it. OK, so I need to do `list(zip(...` and it should be OK\nthen, right?\n\nI should really get more familiar with python 3 :-/\n\nOn Fri, Apr 24, 2015 at 7:31 PM, Eric Larson <notifications@github.com>\nwrote:\n\n> The example appears to displease Travis:\n>\n> https://travis-ci.org/mne-tools/mne-python/jobs/59963817#L837\n>\n> Py3k doesn't do anything differently with tuples, but things like zip are\n> now iterators and not a list. that means that this line:\n>\n> xy = np.array(zip(*[i.ravel() for i in square]))\n>\n> Produces this:\n>\n> >>> snobg = 10\n> >>> sbg = 15\n> >>> square = np.meshgrid(*[np.arange(snobg)] * 2, indexing='xy')\n> >>> xy = np.array(zip(*[i.ravel() for i in square]))\n> >>> xy\n> array(<zip object at 0x101fd03c8>, dtype=object)\n>\n> Notice that this is a array with one element, which will have ndim=0 and\n> thus len(shape) == 0.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/mne-tools/mne-python/pull/1762#issuecomment-96122201>.\n>\n"}}