{"action":"created","comment":{"url":"https://api.github.com/repos/vispy/vispy/pulls/comments/36850377","id":36850377,"diff_hunk":"@@ -0,0 +1,162 @@\n+#!/usr/bin/env python\n+# -*- coding: utf-8 -*-\n+\"\"\"\n+Example demonstrating spatial filtering using spatial-filters fragment shader.\n+Left and Right Arrow Keys toggle through available filters.\n+\"\"\"\n+\n+import numpy as np\n+\n+from vispy.io import load_spatial_filters\n+from vispy import gloo\n+from vispy import app\n+\n+# create 5x5 matrix with border pixels 0, center pixels 1\n+# and other pixels 0.5\n+I = np.zeros(25).reshape((5, 5)).astype(np.float32)\n+I[1:4, 1::2] = 0.5\n+I[1::2, 2] = 0.5\n+I[2, 2] = 1.0\n+\n+# loading interpolation kernel\n+kernel = load_spatial_filters()","path":"examples/basics/gloo/spatial_filters.py","position":22,"original_position":22,"commit_id":"96800e343a8d3f37bf9f6ffc94449d3a7a1ad062","original_commit_id":"96800e343a8d3f37bf9f6ffc94449d3a7a1ad062","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":"so `kernel, names = load_spatial_filters()`","created_at":"2015-08-12T11:46:34Z","updated_at":"2015-08-12T11:46:34Z","html_url":"https://github.com/vispy/vispy/pull/1050#discussion_r36850377","pull_request_url":"https://api.github.com/repos/vispy/vispy/pulls/1050","_links":{"self":{"href":"https://api.github.com/repos/vispy/vispy/pulls/comments/36850377"},"html":{"href":"https://github.com/vispy/vispy/pull/1050#discussion_r36850377"},"pull_request":{"href":"https://api.github.com/repos/vispy/vispy/pulls/1050"}}},"pull_request":{"url":"https://api.github.com/repos/vispy/vispy/pulls/1050","id":42211424,"html_url":"https://github.com/vispy/vispy/pull/1050","diff_url":"https://github.com/vispy/vispy/pull/1050.diff","patch_url":"https://github.com/vispy/vispy/pull/1050.patch","issue_url":"https://api.github.com/repos/vispy/vispy/issues/1050","number":1050,"state":"open","locked":false,"title":"add spatial-filters example in examples/basic/gloo","user":{"login":"kmuehlbauer","id":5821660,"avatar_url":"https://avatars.githubusercontent.com/u/5821660?v=3","gravatar_id":"","url":"https://api.github.com/users/kmuehlbauer","html_url":"https://github.com/kmuehlbauer","followers_url":"https://api.github.com/users/kmuehlbauer/followers","following_url":"https://api.github.com/users/kmuehlbauer/following{/other_user}","gists_url":"https://api.github.com/users/kmuehlbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/kmuehlbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmuehlbauer/subscriptions","organizations_url":"https://api.github.com/users/kmuehlbauer/orgs","repos_url":"https://api.github.com/users/kmuehlbauer/repos","events_url":"https://api.github.com/users/kmuehlbauer/events{/privacy}","received_events_url":"https://api.github.com/users/kmuehlbauer/received_events","type":"User","site_admin":false},"body":"PR suggested in #1017 and as follow up to #1048.\r\n \r\nThe added example shows the available 17 interpolations in spatial-filters.frag . Toggling with 'Left' and 'Right' arrow keys. The actual used filter is shown in the window title.","created_at":"2015-08-12T07:27:58Z","updated_at":"2015-08-12T11:46:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29a7ecc1e9deea278142e1460b126585a62084c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vispy/vispy/pulls/1050/commits","review_comments_url":"https://api.github.com/repos/vispy/vispy/pulls/1050/comments","review_comment_url":"https://api.github.com/repos/vispy/vispy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vispy/vispy/issues/1050/comments","statuses_url":"https://api.github.com/repos/vispy/vispy/statuses/96800e343a8d3f37bf9f6ffc94449d3a7a1ad062","head":{"label":"kmuehlbauer:master","ref":"master","sha":"96800e343a8d3f37bf9f6ffc94449d3a7a1ad062","user":{"login":"kmuehlbauer","id":5821660,"avatar_url":"https://avatars.githubusercontent.com/u/5821660?v=3","gravatar_id":"","url":"https://api.github.com/users/kmuehlbauer","html_url":"https://github.com/kmuehlbauer","followers_url":"https://api.github.com/users/kmuehlbauer/followers","following_url":"https://api.github.com/users/kmuehlbauer/following{/other_user}","gists_url":"https://api.github.com/users/kmuehlbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/kmuehlbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmuehlbauer/subscriptions","organizations_url":"https://api.github.com/users/kmuehlbauer/orgs","repos_url":"https://api.github.com/users/kmuehlbauer/repos","events_url":"https://api.github.com/users/kmuehlbauer/events{/privacy}","received_events_url":"https://api.github.com/users/kmuehlbauer/received_events","type":"User","site_admin":false},"repo":{"id":38092979,"name":"vispy","full_name":"kmuehlbauer/vispy","owner":{"login":"kmuehlbauer","id":5821660,"avatar_url":"https://avatars.githubusercontent.com/u/5821660?v=3","gravatar_id":"","url":"https://api.github.com/users/kmuehlbauer","html_url":"https://github.com/kmuehlbauer","followers_url":"https://api.github.com/users/kmuehlbauer/followers","following_url":"https://api.github.com/users/kmuehlbauer/following{/other_user}","gists_url":"https://api.github.com/users/kmuehlbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/kmuehlbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmuehlbauer/subscriptions","organizations_url":"https://api.github.com/users/kmuehlbauer/orgs","repos_url":"https://api.github.com/users/kmuehlbauer/repos","events_url":"https://api.github.com/users/kmuehlbauer/events{/privacy}","received_events_url":"https://api.github.com/users/kmuehlbauer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kmuehlbauer/vispy","description":"Kai's vispy fork","fork":true,"url":"https://api.github.com/repos/kmuehlbauer/vispy","forks_url":"https://api.github.com/repos/kmuehlbauer/vispy/forks","keys_url":"https://api.github.com/repos/kmuehlbauer/vispy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmuehlbauer/vispy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmuehlbauer/vispy/teams","hooks_url":"https://api.github.com/repos/kmuehlbauer/vispy/hooks","issue_events_url":"https://api.github.com/repos/kmuehlbauer/vispy/issues/events{/number}","events_url":"https://api.github.com/repos/kmuehlbauer/vispy/events","assignees_url":"https://api.github.com/repos/kmuehlbauer/vispy/assignees{/user}","branches_url":"https://api.github.com/repos/kmuehlbauer/vispy/branches{/branch}","tags_url":"https://api.github.com/repos/kmuehlbauer/vispy/tags","blobs_url":"https://api.github.com/repos/kmuehlbauer/vispy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmuehlbauer/vispy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmuehlbauer/vispy/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmuehlbauer/vispy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmuehlbauer/vispy/statuses/{sha}","languages_url":"https://api.github.com/repos/kmuehlbauer/vispy/languages","stargazers_url":"https://api.github.com/repos/kmuehlbauer/vispy/stargazers","contributors_url":"https://api.github.com/repos/kmuehlbauer/vispy/contributors","subscribers_url":"https://api.github.com/repos/kmuehlbauer/vispy/subscribers","subscription_url":"https://api.github.com/repos/kmuehlbauer/vispy/subscription","commits_url":"https://api.github.com/repos/kmuehlbauer/vispy/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmuehlbauer/vispy/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmuehlbauer/vispy/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmuehlbauer/vispy/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmuehlbauer/vispy/contents/{+path}","compare_url":"https://api.github.com/repos/kmuehlbauer/vispy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmuehlbauer/vispy/merges","archive_url":"https://api.github.com/repos/kmuehlbauer/vispy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmuehlbauer/vispy/downloads","issues_url":"https://api.github.com/repos/kmuehlbauer/vispy/issues{/number}","pulls_url":"https://api.github.com/repos/kmuehlbauer/vispy/pulls{/number}","milestones_url":"https://api.github.com/repos/kmuehlbauer/vispy/milestones{/number}","notifications_url":"https://api.github.com/repos/kmuehlbauer/vispy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmuehlbauer/vispy/labels{/name}","releases_url":"https://api.github.com/repos/kmuehlbauer/vispy/releases{/id}","created_at":"2015-06-26T05:42:01Z","updated_at":"2015-06-28T19:06:01Z","pushed_at":"2015-08-12T11:40:57Z","git_url":"git://github.com/kmuehlbauer/vispy.git","ssh_url":"git@github.com:kmuehlbauer/vispy.git","clone_url":"https://github.com/kmuehlbauer/vispy.git","svn_url":"https://github.com/kmuehlbauer/vispy","homepage":"http://vispy.org","size":9523,"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":"e50b4b57497aa5bfd6cc3ead4ab0588a466fac3d","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-08-11T09:41:47Z","pushed_at":"2015-08-12T11:40:58Z","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":18806,"stargazers_count":696,"watchers_count":696,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":122,"mirror_url":null,"open_issues_count":158,"forks":122,"open_issues":158,"watchers":696,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vispy/vispy/pulls/1050"},"html":{"href":"https://github.com/vispy/vispy/pull/1050"},"issue":{"href":"https://api.github.com/repos/vispy/vispy/issues/1050"},"comments":{"href":"https://api.github.com/repos/vispy/vispy/issues/1050/comments"},"review_comments":{"href":"https://api.github.com/repos/vispy/vispy/pulls/1050/comments"},"review_comment":{"href":"https://api.github.com/repos/vispy/vispy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vispy/vispy/pulls/1050/commits"},"statuses":{"href":"https://api.github.com/repos/vispy/vispy/statuses/96800e343a8d3f37bf9f6ffc94449d3a7a1ad062"}}}}