{"action":"created","comment":{"url":"https://api.github.com/repos/Eric89GXL/nibabel/pulls/comments/52770549","id":52770549,"diff_hunk":"@@ -436,6 +444,16 @@ def _on_keypress(self, event):\n         \"\"\"Handle mpl keypress events\"\"\"\n         if event.key is not None and 'escape' in event.key:\n             self.close()\n+        elif event.key in [\"=\", '+']:\n+            # increment volume index\n+            new_idx = min(self._data_idx[3]+1, self.n_volumes)","path":"nibabel/viewers.py","position":28,"original_position":28,"commit_id":"ab3b6c76e7bde455e187dd5770262c6fdb57e52d","original_commit_id":"ab3b6c76e7bde455e187dd5770262c6fdb57e52d","user":{"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},"body":"I can't remember if `nibabel` wants spaces around operators or not...","created_at":"2016-02-12T17:22:07Z","updated_at":"2016-02-12T17:22:07Z","html_url":"https://github.com/Eric89GXL/nibabel/pull/3#discussion_r52770549","pull_request_url":"https://api.github.com/repos/Eric89GXL/nibabel/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Eric89GXL/nibabel/pulls/comments/52770549"},"html":{"href":"https://github.com/Eric89GXL/nibabel/pull/3#discussion_r52770549"},"pull_request":{"href":"https://api.github.com/repos/Eric89GXL/nibabel/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Eric89GXL/nibabel/pulls/3","id":59197650,"html_url":"https://github.com/Eric89GXL/nibabel/pull/3","diff_url":"https://github.com/Eric89GXL/nibabel/pull/3.diff","patch_url":"https://github.com/Eric89GXL/nibabel/pull/3.patch","issue_url":"https://api.github.com/repos/Eric89GXL/nibabel/issues/3","number":3,"state":"open","locked":false,"title":"improve handling of complex inputs and 4d data","user":{"login":"grlee77","id":6528957,"avatar_url":"https://avatars.githubusercontent.com/u/6528957?v=3","gravatar_id":"","url":"https://api.github.com/users/grlee77","html_url":"https://github.com/grlee77","followers_url":"https://api.github.com/users/grlee77/followers","following_url":"https://api.github.com/users/grlee77/following{/other_user}","gists_url":"https://api.github.com/users/grlee77/gists{/gist_id}","starred_url":"https://api.github.com/users/grlee77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grlee77/subscriptions","organizations_url":"https://api.github.com/users/grlee77/orgs","repos_url":"https://api.github.com/users/grlee77/repos","events_url":"https://api.github.com/users/grlee77/events{/privacy}","received_events_url":"https://api.github.com/users/grlee77/received_events","type":"User","site_admin":false},"body":"a few proposed enhancements\r\n1.) describe 4d data handling in the docstring\r\n2.) allow +/- keys to increment/decrement the displayed volume\r\n3.) raise an immediate TypeError if the data is complex.","created_at":"2016-02-12T16:40:20Z","updated_at":"2016-02-12T17:22:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22631e917dde1e59bdfa8562292ee92979b67593","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Eric89GXL/nibabel/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Eric89GXL/nibabel/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Eric89GXL/nibabel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Eric89GXL/nibabel/issues/3/comments","statuses_url":"https://api.github.com/repos/Eric89GXL/nibabel/statuses/ab3b6c76e7bde455e187dd5770262c6fdb57e52d","head":{"label":"grlee77:viewer_tweaks","ref":"viewer_tweaks","sha":"ab3b6c76e7bde455e187dd5770262c6fdb57e52d","user":{"login":"grlee77","id":6528957,"avatar_url":"https://avatars.githubusercontent.com/u/6528957?v=3","gravatar_id":"","url":"https://api.github.com/users/grlee77","html_url":"https://github.com/grlee77","followers_url":"https://api.github.com/users/grlee77/followers","following_url":"https://api.github.com/users/grlee77/following{/other_user}","gists_url":"https://api.github.com/users/grlee77/gists{/gist_id}","starred_url":"https://api.github.com/users/grlee77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grlee77/subscriptions","organizations_url":"https://api.github.com/users/grlee77/orgs","repos_url":"https://api.github.com/users/grlee77/repos","events_url":"https://api.github.com/users/grlee77/events{/privacy}","received_events_url":"https://api.github.com/users/grlee77/received_events","type":"User","site_admin":false},"repo":{"id":16326338,"name":"nibabel","full_name":"grlee77/nibabel","owner":{"login":"grlee77","id":6528957,"avatar_url":"https://avatars.githubusercontent.com/u/6528957?v=3","gravatar_id":"","url":"https://api.github.com/users/grlee77","html_url":"https://github.com/grlee77","followers_url":"https://api.github.com/users/grlee77/followers","following_url":"https://api.github.com/users/grlee77/following{/other_user}","gists_url":"https://api.github.com/users/grlee77/gists{/gist_id}","starred_url":"https://api.github.com/users/grlee77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grlee77/subscriptions","organizations_url":"https://api.github.com/users/grlee77/orgs","repos_url":"https://api.github.com/users/grlee77/repos","events_url":"https://api.github.com/users/grlee77/events{/privacy}","received_events_url":"https://api.github.com/users/grlee77/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grlee77/nibabel","description":"Python package to access a cacophony of neuro-imaging file formats","fork":true,"url":"https://api.github.com/repos/grlee77/nibabel","forks_url":"https://api.github.com/repos/grlee77/nibabel/forks","keys_url":"https://api.github.com/repos/grlee77/nibabel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grlee77/nibabel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grlee77/nibabel/teams","hooks_url":"https://api.github.com/repos/grlee77/nibabel/hooks","issue_events_url":"https://api.github.com/repos/grlee77/nibabel/issues/events{/number}","events_url":"https://api.github.com/repos/grlee77/nibabel/events","assignees_url":"https://api.github.com/repos/grlee77/nibabel/assignees{/user}","branches_url":"https://api.github.com/repos/grlee77/nibabel/branches{/branch}","tags_url":"https://api.github.com/repos/grlee77/nibabel/tags","blobs_url":"https://api.github.com/repos/grlee77/nibabel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grlee77/nibabel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grlee77/nibabel/git/refs{/sha}","trees_url":"https://api.github.com/repos/grlee77/nibabel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grlee77/nibabel/statuses/{sha}","languages_url":"https://api.github.com/repos/grlee77/nibabel/languages","stargazers_url":"https://api.github.com/repos/grlee77/nibabel/stargazers","contributors_url":"https://api.github.com/repos/grlee77/nibabel/contributors","subscribers_url":"https://api.github.com/repos/grlee77/nibabel/subscribers","subscription_url":"https://api.github.com/repos/grlee77/nibabel/subscription","commits_url":"https://api.github.com/repos/grlee77/nibabel/commits{/sha}","git_commits_url":"https://api.github.com/repos/grlee77/nibabel/git/commits{/sha}","comments_url":"https://api.github.com/repos/grlee77/nibabel/comments{/number}","issue_comment_url":"https://api.github.com/repos/grlee77/nibabel/issues/comments{/number}","contents_url":"https://api.github.com/repos/grlee77/nibabel/contents/{+path}","compare_url":"https://api.github.com/repos/grlee77/nibabel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grlee77/nibabel/merges","archive_url":"https://api.github.com/repos/grlee77/nibabel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grlee77/nibabel/downloads","issues_url":"https://api.github.com/repos/grlee77/nibabel/issues{/number}","pulls_url":"https://api.github.com/repos/grlee77/nibabel/pulls{/number}","milestones_url":"https://api.github.com/repos/grlee77/nibabel/milestones{/number}","notifications_url":"https://api.github.com/repos/grlee77/nibabel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grlee77/nibabel/labels{/name}","releases_url":"https://api.github.com/repos/grlee77/nibabel/releases{/id}","deployments_url":"https://api.github.com/repos/grlee77/nibabel/deployments","created_at":"2014-01-28T21:20:19Z","updated_at":"2014-09-10T22:41:10Z","pushed_at":"2016-02-12T16:37:47Z","git_url":"git://github.com/grlee77/nibabel.git","ssh_url":"git@github.com:grlee77/nibabel.git","clone_url":"https://github.com/grlee77/nibabel.git","svn_url":"https://github.com/grlee77/nibabel","homepage":"http://nipy.org/nibabel/","size":7454,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Eric89GXL:pauls-viewer","ref":"pauls-viewer","sha":"4815e1e1f2e4419f13b9dd0797bd4a333b40942c","user":{"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},"repo":{"id":8961566,"name":"nibabel","full_name":"Eric89GXL/nibabel","owner":{"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},"private":false,"html_url":"https://github.com/Eric89GXL/nibabel","description":"Python package to access a cacophony of neuro-imaging file formats","fork":true,"url":"https://api.github.com/repos/Eric89GXL/nibabel","forks_url":"https://api.github.com/repos/Eric89GXL/nibabel/forks","keys_url":"https://api.github.com/repos/Eric89GXL/nibabel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Eric89GXL/nibabel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Eric89GXL/nibabel/teams","hooks_url":"https://api.github.com/repos/Eric89GXL/nibabel/hooks","issue_events_url":"https://api.github.com/repos/Eric89GXL/nibabel/issues/events{/number}","events_url":"https://api.github.com/repos/Eric89GXL/nibabel/events","assignees_url":"https://api.github.com/repos/Eric89GXL/nibabel/assignees{/user}","branches_url":"https://api.github.com/repos/Eric89GXL/nibabel/branches{/branch}","tags_url":"https://api.github.com/repos/Eric89GXL/nibabel/tags","blobs_url":"https://api.github.com/repos/Eric89GXL/nibabel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Eric89GXL/nibabel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Eric89GXL/nibabel/git/refs{/sha}","trees_url":"https://api.github.com/repos/Eric89GXL/nibabel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Eric89GXL/nibabel/statuses/{sha}","languages_url":"https://api.github.com/repos/Eric89GXL/nibabel/languages","stargazers_url":"https://api.github.com/repos/Eric89GXL/nibabel/stargazers","contributors_url":"https://api.github.com/repos/Eric89GXL/nibabel/contributors","subscribers_url":"https://api.github.com/repos/Eric89GXL/nibabel/subscribers","subscription_url":"https://api.github.com/repos/Eric89GXL/nibabel/subscription","commits_url":"https://api.github.com/repos/Eric89GXL/nibabel/commits{/sha}","git_commits_url":"https://api.github.com/repos/Eric89GXL/nibabel/git/commits{/sha}","comments_url":"https://api.github.com/repos/Eric89GXL/nibabel/comments{/number}","issue_comment_url":"https://api.github.com/repos/Eric89GXL/nibabel/issues/comments{/number}","contents_url":"https://api.github.com/repos/Eric89GXL/nibabel/contents/{+path}","compare_url":"https://api.github.com/repos/Eric89GXL/nibabel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Eric89GXL/nibabel/merges","archive_url":"https://api.github.com/repos/Eric89GXL/nibabel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Eric89GXL/nibabel/downloads","issues_url":"https://api.github.com/repos/Eric89GXL/nibabel/issues{/number}","pulls_url":"https://api.github.com/repos/Eric89GXL/nibabel/pulls{/number}","milestones_url":"https://api.github.com/repos/Eric89GXL/nibabel/milestones{/number}","notifications_url":"https://api.github.com/repos/Eric89GXL/nibabel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Eric89GXL/nibabel/labels{/name}","releases_url":"https://api.github.com/repos/Eric89GXL/nibabel/releases{/id}","deployments_url":"https://api.github.com/repos/Eric89GXL/nibabel/deployments","created_at":"2013-03-22T21:44:58Z","updated_at":"2014-12-10T18:08:00Z","pushed_at":"2016-02-12T16:40:21Z","git_url":"git://github.com/Eric89GXL/nibabel.git","ssh_url":"git@github.com:Eric89GXL/nibabel.git","clone_url":"https://github.com/Eric89GXL/nibabel.git","svn_url":"https://github.com/Eric89GXL/nibabel","homepage":"http://nipy.org/nibabel/","size":7441,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Eric89GXL/nibabel/pulls/3"},"html":{"href":"https://github.com/Eric89GXL/nibabel/pull/3"},"issue":{"href":"https://api.github.com/repos/Eric89GXL/nibabel/issues/3"},"comments":{"href":"https://api.github.com/repos/Eric89GXL/nibabel/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Eric89GXL/nibabel/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Eric89GXL/nibabel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Eric89GXL/nibabel/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Eric89GXL/nibabel/statuses/ab3b6c76e7bde455e187dd5770262c6fdb57e52d"}}}}