{"action":"created","comment":{"url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments/37748077","id":37748077,"diff_hunk":"@@ -0,0 +1,183 @@\n+# -*- coding: utf-8 -*-\n+\n+import numpy as np\n+import skimage\n+from scipy import sparse\n+from scipy.sparse.linalg import spsolve\n+\n+\n+def biharmonic_inpaint(img, mask):\n+    # XXX: check and/or rework examples\n+    \"\"\"Inpaint masked points in image, using system of biharmonic\n+    equations.\n+\n+    Parameters\n+    ----------\n+    img: 2-D ndarray\n+        Input image.\n+    mask: 2-D ndarray\n+        Array of pixels to be inpainted. Has to have the same size as 'img'.\n+        Unknown pixels has to be represented with 1, known - with 0.","path":"skimage/restoration/inpainting.py","position":20,"original_position":20,"commit_id":"6af22f59307363dd5220256dde0b544a8eca4f05","original_commit_id":"6af22f59307363dd5220256dde0b544a8eca4f05","user":{"login":"ahojnnes","id":134307,"avatar_url":"https://avatars.githubusercontent.com/u/134307?v=3","gravatar_id":"","url":"https://api.github.com/users/ahojnnes","html_url":"https://github.com/ahojnnes","followers_url":"https://api.github.com/users/ahojnnes/followers","following_url":"https://api.github.com/users/ahojnnes/following{/other_user}","gists_url":"https://api.github.com/users/ahojnnes/gists{/gist_id}","starred_url":"https://api.github.com/users/ahojnnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahojnnes/subscriptions","organizations_url":"https://api.github.com/users/ahojnnes/orgs","repos_url":"https://api.github.com/users/ahojnnes/repos","events_url":"https://api.github.com/users/ahojnnes/events{/privacy}","received_events_url":"https://api.github.com/users/ahojnnes/received_events","type":"User","site_admin":false},"body":"\"have to be\"","created_at":"2015-08-24T13:03:20Z","updated_at":"2015-08-24T13:03:20Z","html_url":"https://github.com/scikit-image/scikit-image/pull/1640#discussion_r37748077","pull_request_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1640","_links":{"self":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments/37748077"},"html":{"href":"https://github.com/scikit-image/scikit-image/pull/1640#discussion_r37748077"},"pull_request":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1640"}}},"pull_request":{"url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1640","id":43154155,"html_url":"https://github.com/scikit-image/scikit-image/pull/1640","diff_url":"https://github.com/scikit-image/scikit-image/pull/1640.diff","patch_url":"https://github.com/scikit-image/scikit-image/pull/1640.patch","issue_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1640","number":1640,"state":"open","locked":false,"title":"WIP: Inpainting with biharmonic equation","user":{"login":"soupault","id":1315589,"avatar_url":"https://avatars.githubusercontent.com/u/1315589?v=3","gravatar_id":"","url":"https://api.github.com/users/soupault","html_url":"https://github.com/soupault","followers_url":"https://api.github.com/users/soupault/followers","following_url":"https://api.github.com/users/soupault/following{/other_user}","gists_url":"https://api.github.com/users/soupault/gists{/gist_id}","starred_url":"https://api.github.com/users/soupault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupault/subscriptions","organizations_url":"https://api.github.com/users/soupault/orgs","repos_url":"https://api.github.com/users/soupault/repos","events_url":"https://api.github.com/users/soupault/events{/privacy}","received_events_url":"https://api.github.com/users/soupault/received_events","type":"User","site_admin":false},"body":"Dear maintainters,\r\nI couldn't handle Git conflicts those I had suddenly created in https://github.com/scikit-image/scikit-image/pull/1038 , so I decided to open a new PR.\r\n\r\nOpen points at the moment (besides mentioned in `TODO`'s):\r\n\r\nby @stefanv:\r\n* add test to cover 100% of code;\r\n* add example to the gallery;\r\n* check how example in doc-block is being rendered.\r\n\r\nby @ahojnnes:\r\n* tests example: https://github.com/scikit-image/scikit-image/blob/master/skimage/segmentation/tests/test_slic.py ;\r\n* check which lines are missing by running `make coverage`.\r\n\r\nby @jni:\r\n* 'n-dimension'alize the algorithm.\r\n\r\nAs far as I improved my skills in Python I'm going to finalize the PR.","created_at":"2015-08-24T09:14:07Z","updated_at":"2015-08-24T13:03:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cced73ddc90ed153efd1e77bd1f0892ff2120785","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1640/commits","review_comments_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1640/comments","review_comment_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1640/comments","statuses_url":"https://api.github.com/repos/scikit-image/scikit-image/statuses/6af22f59307363dd5220256dde0b544a8eca4f05","head":{"label":"soupault:inpainting","ref":"inpainting","sha":"6af22f59307363dd5220256dde0b544a8eca4f05","user":{"login":"soupault","id":1315589,"avatar_url":"https://avatars.githubusercontent.com/u/1315589?v=3","gravatar_id":"","url":"https://api.github.com/users/soupault","html_url":"https://github.com/soupault","followers_url":"https://api.github.com/users/soupault/followers","following_url":"https://api.github.com/users/soupault/following{/other_user}","gists_url":"https://api.github.com/users/soupault/gists{/gist_id}","starred_url":"https://api.github.com/users/soupault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupault/subscriptions","organizations_url":"https://api.github.com/users/soupault/orgs","repos_url":"https://api.github.com/users/soupault/repos","events_url":"https://api.github.com/users/soupault/events{/privacy}","received_events_url":"https://api.github.com/users/soupault/received_events","type":"User","site_admin":false},"repo":{"id":41291617,"name":"scikit-image","full_name":"soupault/scikit-image","owner":{"login":"soupault","id":1315589,"avatar_url":"https://avatars.githubusercontent.com/u/1315589?v=3","gravatar_id":"","url":"https://api.github.com/users/soupault","html_url":"https://github.com/soupault","followers_url":"https://api.github.com/users/soupault/followers","following_url":"https://api.github.com/users/soupault/following{/other_user}","gists_url":"https://api.github.com/users/soupault/gists{/gist_id}","starred_url":"https://api.github.com/users/soupault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupault/subscriptions","organizations_url":"https://api.github.com/users/soupault/orgs","repos_url":"https://api.github.com/users/soupault/repos","events_url":"https://api.github.com/users/soupault/events{/privacy}","received_events_url":"https://api.github.com/users/soupault/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/soupault/scikit-image","description":"Image Processing SciKit (Toolbox for SciPy)","fork":true,"url":"https://api.github.com/repos/soupault/scikit-image","forks_url":"https://api.github.com/repos/soupault/scikit-image/forks","keys_url":"https://api.github.com/repos/soupault/scikit-image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soupault/scikit-image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soupault/scikit-image/teams","hooks_url":"https://api.github.com/repos/soupault/scikit-image/hooks","issue_events_url":"https://api.github.com/repos/soupault/scikit-image/issues/events{/number}","events_url":"https://api.github.com/repos/soupault/scikit-image/events","assignees_url":"https://api.github.com/repos/soupault/scikit-image/assignees{/user}","branches_url":"https://api.github.com/repos/soupault/scikit-image/branches{/branch}","tags_url":"https://api.github.com/repos/soupault/scikit-image/tags","blobs_url":"https://api.github.com/repos/soupault/scikit-image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soupault/scikit-image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soupault/scikit-image/git/refs{/sha}","trees_url":"https://api.github.com/repos/soupault/scikit-image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soupault/scikit-image/statuses/{sha}","languages_url":"https://api.github.com/repos/soupault/scikit-image/languages","stargazers_url":"https://api.github.com/repos/soupault/scikit-image/stargazers","contributors_url":"https://api.github.com/repos/soupault/scikit-image/contributors","subscribers_url":"https://api.github.com/repos/soupault/scikit-image/subscribers","subscription_url":"https://api.github.com/repos/soupault/scikit-image/subscription","commits_url":"https://api.github.com/repos/soupault/scikit-image/commits{/sha}","git_commits_url":"https://api.github.com/repos/soupault/scikit-image/git/commits{/sha}","comments_url":"https://api.github.com/repos/soupault/scikit-image/comments{/number}","issue_comment_url":"https://api.github.com/repos/soupault/scikit-image/issues/comments{/number}","contents_url":"https://api.github.com/repos/soupault/scikit-image/contents/{+path}","compare_url":"https://api.github.com/repos/soupault/scikit-image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soupault/scikit-image/merges","archive_url":"https://api.github.com/repos/soupault/scikit-image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soupault/scikit-image/downloads","issues_url":"https://api.github.com/repos/soupault/scikit-image/issues{/number}","pulls_url":"https://api.github.com/repos/soupault/scikit-image/pulls{/number}","milestones_url":"https://api.github.com/repos/soupault/scikit-image/milestones{/number}","notifications_url":"https://api.github.com/repos/soupault/scikit-image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soupault/scikit-image/labels{/name}","releases_url":"https://api.github.com/repos/soupault/scikit-image/releases{/id}","created_at":"2015-08-24T08:32:22Z","updated_at":"2015-08-24T08:32:23Z","pushed_at":"2015-08-24T09:26:59Z","git_url":"git://github.com/soupault/scikit-image.git","ssh_url":"git@github.com:soupault/scikit-image.git","clone_url":"https://github.com/soupault/scikit-image.git","svn_url":"https://github.com/soupault/scikit-image","homepage":"http://scikit-image.org","size":72461,"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":"scikit-image:master","ref":"master","sha":"13b2170dfd3ee9065ba6d65f29ff37f6b3bf948e","user":{"login":"scikit-image","id":897180,"avatar_url":"https://avatars.githubusercontent.com/u/897180?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-image","html_url":"https://github.com/scikit-image","followers_url":"https://api.github.com/users/scikit-image/followers","following_url":"https://api.github.com/users/scikit-image/following{/other_user}","gists_url":"https://api.github.com/users/scikit-image/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-image/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-image/subscriptions","organizations_url":"https://api.github.com/users/scikit-image/orgs","repos_url":"https://api.github.com/users/scikit-image/repos","events_url":"https://api.github.com/users/scikit-image/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-image/received_events","type":"Organization","site_admin":false},"repo":{"id":2014929,"name":"scikit-image","full_name":"scikit-image/scikit-image","owner":{"login":"scikit-image","id":897180,"avatar_url":"https://avatars.githubusercontent.com/u/897180?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-image","html_url":"https://github.com/scikit-image","followers_url":"https://api.github.com/users/scikit-image/followers","following_url":"https://api.github.com/users/scikit-image/following{/other_user}","gists_url":"https://api.github.com/users/scikit-image/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-image/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-image/subscriptions","organizations_url":"https://api.github.com/users/scikit-image/orgs","repos_url":"https://api.github.com/users/scikit-image/repos","events_url":"https://api.github.com/users/scikit-image/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-image/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scikit-image/scikit-image","description":"Image Processing SciKit (Toolbox for SciPy)","fork":false,"url":"https://api.github.com/repos/scikit-image/scikit-image","forks_url":"https://api.github.com/repos/scikit-image/scikit-image/forks","keys_url":"https://api.github.com/repos/scikit-image/scikit-image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scikit-image/scikit-image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scikit-image/scikit-image/teams","hooks_url":"https://api.github.com/repos/scikit-image/scikit-image/hooks","issue_events_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/events{/number}","events_url":"https://api.github.com/repos/scikit-image/scikit-image/events","assignees_url":"https://api.github.com/repos/scikit-image/scikit-image/assignees{/user}","branches_url":"https://api.github.com/repos/scikit-image/scikit-image/branches{/branch}","tags_url":"https://api.github.com/repos/scikit-image/scikit-image/tags","blobs_url":"https://api.github.com/repos/scikit-image/scikit-image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scikit-image/scikit-image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scikit-image/scikit-image/git/refs{/sha}","trees_url":"https://api.github.com/repos/scikit-image/scikit-image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scikit-image/scikit-image/statuses/{sha}","languages_url":"https://api.github.com/repos/scikit-image/scikit-image/languages","stargazers_url":"https://api.github.com/repos/scikit-image/scikit-image/stargazers","contributors_url":"https://api.github.com/repos/scikit-image/scikit-image/contributors","subscribers_url":"https://api.github.com/repos/scikit-image/scikit-image/subscribers","subscription_url":"https://api.github.com/repos/scikit-image/scikit-image/subscription","commits_url":"https://api.github.com/repos/scikit-image/scikit-image/commits{/sha}","git_commits_url":"https://api.github.com/repos/scikit-image/scikit-image/git/commits{/sha}","comments_url":"https://api.github.com/repos/scikit-image/scikit-image/comments{/number}","issue_comment_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/comments{/number}","contents_url":"https://api.github.com/repos/scikit-image/scikit-image/contents/{+path}","compare_url":"https://api.github.com/repos/scikit-image/scikit-image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scikit-image/scikit-image/merges","archive_url":"https://api.github.com/repos/scikit-image/scikit-image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scikit-image/scikit-image/downloads","issues_url":"https://api.github.com/repos/scikit-image/scikit-image/issues{/number}","pulls_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls{/number}","milestones_url":"https://api.github.com/repos/scikit-image/scikit-image/milestones{/number}","notifications_url":"https://api.github.com/repos/scikit-image/scikit-image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scikit-image/scikit-image/labels{/name}","releases_url":"https://api.github.com/repos/scikit-image/scikit-image/releases{/id}","created_at":"2011-07-07T22:07:20Z","updated_at":"2015-08-23T03:59:53Z","pushed_at":"2015-08-24T09:27:00Z","git_url":"git://github.com/scikit-image/scikit-image.git","ssh_url":"git@github.com:scikit-image/scikit-image.git","clone_url":"https://github.com/scikit-image/scikit-image.git","svn_url":"https://github.com/scikit-image/scikit-image","homepage":"http://scikit-image.org","size":72461,"stargazers_count":789,"watchers_count":789,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":397,"mirror_url":null,"open_issues_count":195,"forks":397,"open_issues":195,"watchers":789,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1640"},"html":{"href":"https://github.com/scikit-image/scikit-image/pull/1640"},"issue":{"href":"https://api.github.com/repos/scikit-image/scikit-image/issues/1640"},"comments":{"href":"https://api.github.com/repos/scikit-image/scikit-image/issues/1640/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1640/comments"},"review_comment":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1640/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-image/scikit-image/statuses/6af22f59307363dd5220256dde0b544a8eca4f05"}}}}