{"action":"created","comment":{"url":"https://api.github.com/repos/vispy/vispy/pulls/comments/27612476","id":27612476,"diff_hunk":"@@ -78,3 +80,57 @@ def _calculate_normals(rr, tris):\n     size[size == 0] = 1.0  # prevent ugly divide-by-zero\n     nn /= size[:, np.newaxis]\n     return nn\n+\n+\n+def resize(image, shape, kind='linear'):\n+    \"\"\"Resize an image\n+\n+    Parameters\n+    ----------\n+    image : ndarray\n+        Array of shape (N, M, ...).\n+    shape : tuple\n+        2-element shape.\n+    kind : str\n+        Interpolation, either \"linear\" or \"nearest\".\n+\n+    Returns\n+    -------\n+    scaled_image : ndarray\n+        New image, will have dtype np.float64.\n+    \"\"\"","path":"vispy/geometry/calculations.py","position":31,"original_position":31,"commit_id":"3ec17eb67c735ea425498ccf57a26faae951c41e","original_commit_id":"3ec17eb67c735ea425498ccf57a26faae951c41e","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":"Right now we only use the `nearest` method, but the `linear` could come in handy in the future (I've wanted it before)","created_at":"2015-04-01T21:14:31Z","updated_at":"2015-04-01T21:14:31Z","html_url":"https://github.com/vispy/vispy/pull/842#discussion_r27612476","pull_request_url":"https://api.github.com/repos/vispy/vispy/pulls/842","_links":{"self":{"href":"https://api.github.com/repos/vispy/vispy/pulls/comments/27612476"},"html":{"href":"https://github.com/vispy/vispy/pull/842#discussion_r27612476"},"pull_request":{"href":"https://api.github.com/repos/vispy/vispy/pulls/842"}}},"pull_request":{"url":"https://api.github.com/repos/vispy/vispy/pulls/842","id":32228231,"html_url":"https://github.com/vispy/vispy/pull/842","diff_url":"https://github.com/vispy/vispy/pull/842.diff","patch_url":"https://github.com/vispy/vispy/pull/842.patch","issue_url":"https://api.github.com/repos/vispy/vispy/issues/842","number":842,"state":"open","locked":false,"title":"FIX: HiDPI testing","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":"Closes #789.\r\nCloses #551.\r\n\r\n@nippoo can you see if this makes tests pass for you?","created_at":"2015-03-30T13:53:48Z","updated_at":"2015-04-01T21:14:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2705a4099357d6918d02fa889729408eebcae9cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vispy/vispy/pulls/842/commits","review_comments_url":"https://api.github.com/repos/vispy/vispy/pulls/842/comments","review_comment_url":"https://api.github.com/repos/vispy/vispy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vispy/vispy/issues/842/comments","statuses_url":"https://api.github.com/repos/vispy/vispy/statuses/3ec17eb67c735ea425498ccf57a26faae951c41e","head":{"label":"Eric89GXL:hidpi-corr","ref":"hidpi-corr","sha":"3ec17eb67c735ea425498ccf57a26faae951c41e","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":14961734,"name":"vispy","full_name":"Eric89GXL/vispy","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/vispy","description":"Main repository for Vispy","fork":true,"url":"https://api.github.com/repos/Eric89GXL/vispy","forks_url":"https://api.github.com/repos/Eric89GXL/vispy/forks","keys_url":"https://api.github.com/repos/Eric89GXL/vispy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Eric89GXL/vispy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Eric89GXL/vispy/teams","hooks_url":"https://api.github.com/repos/Eric89GXL/vispy/hooks","issue_events_url":"https://api.github.com/repos/Eric89GXL/vispy/issues/events{/number}","events_url":"https://api.github.com/repos/Eric89GXL/vispy/events","assignees_url":"https://api.github.com/repos/Eric89GXL/vispy/assignees{/user}","branches_url":"https://api.github.com/repos/Eric89GXL/vispy/branches{/branch}","tags_url":"https://api.github.com/repos/Eric89GXL/vispy/tags","blobs_url":"https://api.github.com/repos/Eric89GXL/vispy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Eric89GXL/vispy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Eric89GXL/vispy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Eric89GXL/vispy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Eric89GXL/vispy/statuses/{sha}","languages_url":"https://api.github.com/repos/Eric89GXL/vispy/languages","stargazers_url":"https://api.github.com/repos/Eric89GXL/vispy/stargazers","contributors_url":"https://api.github.com/repos/Eric89GXL/vispy/contributors","subscribers_url":"https://api.github.com/repos/Eric89GXL/vispy/subscribers","subscription_url":"https://api.github.com/repos/Eric89GXL/vispy/subscription","commits_url":"https://api.github.com/repos/Eric89GXL/vispy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Eric89GXL/vispy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Eric89GXL/vispy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Eric89GXL/vispy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Eric89GXL/vispy/contents/{+path}","compare_url":"https://api.github.com/repos/Eric89GXL/vispy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Eric89GXL/vispy/merges","archive_url":"https://api.github.com/repos/Eric89GXL/vispy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Eric89GXL/vispy/downloads","issues_url":"https://api.github.com/repos/Eric89GXL/vispy/issues{/number}","pulls_url":"https://api.github.com/repos/Eric89GXL/vispy/pulls{/number}","milestones_url":"https://api.github.com/repos/Eric89GXL/vispy/milestones{/number}","notifications_url":"https://api.github.com/repos/Eric89GXL/vispy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Eric89GXL/vispy/labels{/name}","releases_url":"https://api.github.com/repos/Eric89GXL/vispy/releases{/id}","created_at":"2013-12-05T18:09:33Z","updated_at":"2015-03-30T21:56:11Z","pushed_at":"2015-04-01T20:20:36Z","git_url":"git://github.com/Eric89GXL/vispy.git","ssh_url":"git@github.com:Eric89GXL/vispy.git","clone_url":"https://github.com/Eric89GXL/vispy.git","svn_url":"https://github.com/Eric89GXL/vispy","homepage":"","size":11035,"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":"vispy:master","ref":"master","sha":"fdfda7f9c646fbc79821111a5b69ed216f675508","user":{"login":"vispy","id":3934254,"avatar_url":"https://avatars.githubusercontent.com/u/3934254?v=3","gravatar_id":"","url":"https://api.github.com/users/vispy","html_url":"https://github.com/vispy","followers_url":"https://api.github.com/users/vispy/followers","following_url":"https://api.github.com/users/vispy/following{/other_user}","gists_url":"https://api.github.com/users/vispy/gists{/gist_id}","starred_url":"https://api.github.com/users/vispy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vispy/subscriptions","organizations_url":"https://api.github.com/users/vispy/orgs","repos_url":"https://api.github.com/users/vispy/repos","events_url":"https://api.github.com/users/vispy/events{/privacy}","received_events_url":"https://api.github.com/users/vispy/received_events","type":"Organization","site_admin":false},"repo":{"id":8935948,"name":"vispy","full_name":"vispy/vispy","owner":{"login":"vispy","id":3934254,"avatar_url":"https://avatars.githubusercontent.com/u/3934254?v=3","gravatar_id":"","url":"https://api.github.com/users/vispy","html_url":"https://github.com/vispy","followers_url":"https://api.github.com/users/vispy/followers","following_url":"https://api.github.com/users/vispy/following{/other_user}","gists_url":"https://api.github.com/users/vispy/gists{/gist_id}","starred_url":"https://api.github.com/users/vispy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vispy/subscriptions","organizations_url":"https://api.github.com/users/vispy/orgs","repos_url":"https://api.github.com/users/vispy/repos","events_url":"https://api.github.com/users/vispy/events{/privacy}","received_events_url":"https://api.github.com/users/vispy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vispy/vispy","description":"Main repository for Vispy","fork":false,"url":"https://api.github.com/repos/vispy/vispy","forks_url":"https://api.github.com/repos/vispy/vispy/forks","keys_url":"https://api.github.com/repos/vispy/vispy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vispy/vispy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vispy/vispy/teams","hooks_url":"https://api.github.com/repos/vispy/vispy/hooks","issue_events_url":"https://api.github.com/repos/vispy/vispy/issues/events{/number}","events_url":"https://api.github.com/repos/vispy/vispy/events","assignees_url":"https://api.github.com/repos/vispy/vispy/assignees{/user}","branches_url":"https://api.github.com/repos/vispy/vispy/branches{/branch}","tags_url":"https://api.github.com/repos/vispy/vispy/tags","blobs_url":"https://api.github.com/repos/vispy/vispy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vispy/vispy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vispy/vispy/git/refs{/sha}","trees_url":"https://api.github.com/repos/vispy/vispy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vispy/vispy/statuses/{sha}","languages_url":"https://api.github.com/repos/vispy/vispy/languages","stargazers_url":"https://api.github.com/repos/vispy/vispy/stargazers","contributors_url":"https://api.github.com/repos/vispy/vispy/contributors","subscribers_url":"https://api.github.com/repos/vispy/vispy/subscribers","subscription_url":"https://api.github.com/repos/vispy/vispy/subscription","commits_url":"https://api.github.com/repos/vispy/vispy/commits{/sha}","git_commits_url":"https://api.github.com/repos/vispy/vispy/git/commits{/sha}","comments_url":"https://api.github.com/repos/vispy/vispy/comments{/number}","issue_comment_url":"https://api.github.com/repos/vispy/vispy/issues/comments{/number}","contents_url":"https://api.github.com/repos/vispy/vispy/contents/{+path}","compare_url":"https://api.github.com/repos/vispy/vispy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vispy/vispy/merges","archive_url":"https://api.github.com/repos/vispy/vispy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vispy/vispy/downloads","issues_url":"https://api.github.com/repos/vispy/vispy/issues{/number}","pulls_url":"https://api.github.com/repos/vispy/vispy/pulls{/number}","milestones_url":"https://api.github.com/repos/vispy/vispy/milestones{/number}","notifications_url":"https://api.github.com/repos/vispy/vispy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vispy/vispy/labels{/name}","releases_url":"https://api.github.com/repos/vispy/vispy/releases{/id}","created_at":"2013-03-21T18:43:22Z","updated_at":"2015-04-01T10:44:23Z","pushed_at":"2015-04-01T20:20:37Z","git_url":"git://github.com/vispy/vispy.git","ssh_url":"git@github.com:vispy/vispy.git","clone_url":"https://github.com/vispy/vispy.git","svn_url":"https://github.com/vispy/vispy","homepage":"http://vispy.org","size":16524,"stargazers_count":520,"watchers_count":520,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":91,"mirror_url":null,"open_issues_count":132,"forks":91,"open_issues":132,"watchers":520,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vispy/vispy/pulls/842"},"html":{"href":"https://github.com/vispy/vispy/pull/842"},"issue":{"href":"https://api.github.com/repos/vispy/vispy/issues/842"},"comments":{"href":"https://api.github.com/repos/vispy/vispy/issues/842/comments"},"review_comments":{"href":"https://api.github.com/repos/vispy/vispy/pulls/842/comments"},"review_comment":{"href":"https://api.github.com/repos/vispy/vispy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vispy/vispy/pulls/842/commits"},"statuses":{"href":"https://api.github.com/repos/vispy/vispy/statuses/3ec17eb67c735ea425498ccf57a26faae951c41e"}}}}