{"action":"created","comment":{"url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments/33213465","id":33213465,"diff_hunk":"@@ -174,6 +175,7 @@ def threshold_yen(image, nbins=256):\n     >>> thresh = threshold_yen(image)\n     >>> binary = image <= thresh\n     \"\"\"\n+    assert_nD(image, 2)","path":"skimage/filters/thresholding.py","position":12,"original_position":12,"commit_id":"35177e2b7b2bd8721f2c165e400098fa8b1b273e","original_commit_id":"35177e2b7b2bd8721f2c165e400098fa8b1b273e","user":{"login":"jni","id":492549,"avatar_url":"https://avatars.githubusercontent.com/u/492549?v=3","gravatar_id":"","url":"https://api.github.com/users/jni","html_url":"https://github.com/jni","followers_url":"https://api.github.com/users/jni/followers","following_url":"https://api.github.com/users/jni/following{/other_user}","gists_url":"https://api.github.com/users/jni/gists{/gist_id}","starred_url":"https://api.github.com/users/jni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jni/subscriptions","organizations_url":"https://api.github.com/users/jni/orgs","repos_url":"https://api.github.com/users/jni/repos","events_url":"https://api.github.com/users/jni/events{/privacy}","received_events_url":"https://api.github.com/users/jni/received_events","type":"User","site_admin":false},"body":"Yeah, what the hell? The Guardian of the Dimensions is very angry. =P","created_at":"2015-06-25T00:46:27Z","updated_at":"2015-06-25T00:46:27Z","html_url":"https://github.com/scikit-image/scikit-image/pull/1568#discussion_r33213465","pull_request_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1568","_links":{"self":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments/33213465"},"html":{"href":"https://github.com/scikit-image/scikit-image/pull/1568#discussion_r33213465"},"pull_request":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1568"}}},"pull_request":{"url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1568","id":38486697,"html_url":"https://github.com/scikit-image/scikit-image/pull/1568","diff_url":"https://github.com/scikit-image/scikit-image/pull/1568.diff","patch_url":"https://github.com/scikit-image/scikit-image/pull/1568.patch","issue_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1568","number":1568,"state":"open","locked":false,"title":"attempt to fix #1567 (threshold_li should not modify the input image)","user":{"login":"sciunto","id":335370,"avatar_url":"https://avatars.githubusercontent.com/u/335370?v=3","gravatar_id":"","url":"https://api.github.com/users/sciunto","html_url":"https://github.com/sciunto","followers_url":"https://api.github.com/users/sciunto/followers","following_url":"https://api.github.com/users/sciunto/following{/other_user}","gists_url":"https://api.github.com/users/sciunto/gists{/gist_id}","starred_url":"https://api.github.com/users/sciunto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sciunto/subscriptions","organizations_url":"https://api.github.com/users/sciunto/orgs","repos_url":"https://api.github.com/users/sciunto/repos","events_url":"https://api.github.com/users/sciunto/events{/privacy}","received_events_url":"https://api.github.com/users/sciunto/received_events","type":"User","site_admin":false},"body":"See #1567\r\n\r\nI preferred a test on offset to avoid the cost of a copy in unnecessary situations.\r\n\r\nI should probably add unittests to check that all these filters are not modifying the input.","created_at":"2015-06-24T20:56:56Z","updated_at":"2015-06-25T00:46:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"335f79c018d48d7ffd13b18dded9abe6139b659c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1568/commits","review_comments_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1568/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/1568/comments","statuses_url":"https://api.github.com/repos/scikit-image/scikit-image/statuses/35177e2b7b2bd8721f2c165e400098fa8b1b273e","head":{"label":"sciunto:threshold_li_fix","ref":"threshold_li_fix","sha":"35177e2b7b2bd8721f2c165e400098fa8b1b273e","user":{"login":"sciunto","id":335370,"avatar_url":"https://avatars.githubusercontent.com/u/335370?v=3","gravatar_id":"","url":"https://api.github.com/users/sciunto","html_url":"https://github.com/sciunto","followers_url":"https://api.github.com/users/sciunto/followers","following_url":"https://api.github.com/users/sciunto/following{/other_user}","gists_url":"https://api.github.com/users/sciunto/gists{/gist_id}","starred_url":"https://api.github.com/users/sciunto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sciunto/subscriptions","organizations_url":"https://api.github.com/users/sciunto/orgs","repos_url":"https://api.github.com/users/sciunto/repos","events_url":"https://api.github.com/users/sciunto/events{/privacy}","received_events_url":"https://api.github.com/users/sciunto/received_events","type":"User","site_admin":false},"repo":{"id":8113365,"name":"scikit-image","full_name":"sciunto/scikit-image","owner":{"login":"sciunto","id":335370,"avatar_url":"https://avatars.githubusercontent.com/u/335370?v=3","gravatar_id":"","url":"https://api.github.com/users/sciunto","html_url":"https://github.com/sciunto","followers_url":"https://api.github.com/users/sciunto/followers","following_url":"https://api.github.com/users/sciunto/following{/other_user}","gists_url":"https://api.github.com/users/sciunto/gists{/gist_id}","starred_url":"https://api.github.com/users/sciunto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sciunto/subscriptions","organizations_url":"https://api.github.com/users/sciunto/orgs","repos_url":"https://api.github.com/users/sciunto/repos","events_url":"https://api.github.com/users/sciunto/events{/privacy}","received_events_url":"https://api.github.com/users/sciunto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sciunto/scikit-image","description":"Image Processing SciKit (Toolbox for SciPy)","fork":true,"url":"https://api.github.com/repos/sciunto/scikit-image","forks_url":"https://api.github.com/repos/sciunto/scikit-image/forks","keys_url":"https://api.github.com/repos/sciunto/scikit-image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sciunto/scikit-image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sciunto/scikit-image/teams","hooks_url":"https://api.github.com/repos/sciunto/scikit-image/hooks","issue_events_url":"https://api.github.com/repos/sciunto/scikit-image/issues/events{/number}","events_url":"https://api.github.com/repos/sciunto/scikit-image/events","assignees_url":"https://api.github.com/repos/sciunto/scikit-image/assignees{/user}","branches_url":"https://api.github.com/repos/sciunto/scikit-image/branches{/branch}","tags_url":"https://api.github.com/repos/sciunto/scikit-image/tags","blobs_url":"https://api.github.com/repos/sciunto/scikit-image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sciunto/scikit-image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sciunto/scikit-image/git/refs{/sha}","trees_url":"https://api.github.com/repos/sciunto/scikit-image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sciunto/scikit-image/statuses/{sha}","languages_url":"https://api.github.com/repos/sciunto/scikit-image/languages","stargazers_url":"https://api.github.com/repos/sciunto/scikit-image/stargazers","contributors_url":"https://api.github.com/repos/sciunto/scikit-image/contributors","subscribers_url":"https://api.github.com/repos/sciunto/scikit-image/subscribers","subscription_url":"https://api.github.com/repos/sciunto/scikit-image/subscription","commits_url":"https://api.github.com/repos/sciunto/scikit-image/commits{/sha}","git_commits_url":"https://api.github.com/repos/sciunto/scikit-image/git/commits{/sha}","comments_url":"https://api.github.com/repos/sciunto/scikit-image/comments{/number}","issue_comment_url":"https://api.github.com/repos/sciunto/scikit-image/issues/comments{/number}","contents_url":"https://api.github.com/repos/sciunto/scikit-image/contents/{+path}","compare_url":"https://api.github.com/repos/sciunto/scikit-image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sciunto/scikit-image/merges","archive_url":"https://api.github.com/repos/sciunto/scikit-image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sciunto/scikit-image/downloads","issues_url":"https://api.github.com/repos/sciunto/scikit-image/issues{/number}","pulls_url":"https://api.github.com/repos/sciunto/scikit-image/pulls{/number}","milestones_url":"https://api.github.com/repos/sciunto/scikit-image/milestones{/number}","notifications_url":"https://api.github.com/repos/sciunto/scikit-image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sciunto/scikit-image/labels{/name}","releases_url":"https://api.github.com/repos/sciunto/scikit-image/releases{/id}","created_at":"2013-02-09T18:48:40Z","updated_at":"2015-01-31T03:43:02Z","pushed_at":"2015-06-24T21:08:01Z","git_url":"git://github.com/sciunto/scikit-image.git","ssh_url":"git@github.com:sciunto/scikit-image.git","clone_url":"https://github.com/sciunto/scikit-image.git","svn_url":"https://github.com/sciunto/scikit-image","homepage":"http://scikit-image.org","size":39671,"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":"be5f6fdc3ff24a0185a1e993aab00f74bee1cab5","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-06-24T09:54:24Z","pushed_at":"2015-06-24T21:08:02Z","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":68444,"stargazers_count":738,"watchers_count":738,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":375,"mirror_url":null,"open_issues_count":183,"forks":375,"open_issues":183,"watchers":738,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1568"},"html":{"href":"https://github.com/scikit-image/scikit-image/pull/1568"},"issue":{"href":"https://api.github.com/repos/scikit-image/scikit-image/issues/1568"},"comments":{"href":"https://api.github.com/repos/scikit-image/scikit-image/issues/1568/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1568/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/1568/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-image/scikit-image/statuses/35177e2b7b2bd8721f2c165e400098fa8b1b273e"}}}}