{"action":"created","comment":{"url":"https://api.github.com/repos/nipy/dipy/pulls/comments/56999463","id":56999463,"diff_hunk":"@@ -170,10 +173,11 @@ def npa(self, odf, width=5):\n     psi0 = t0[1] ** 2\n     psi1 = t1[1] ** 2\n     psi2 = t2[1] ** 2\n-    npa = np.sqrt((psi0 - psi1) ** 2 + (psi1 - psi2) ** 2 + (psi2 - psi0) ** 2) / np.sqrt(2 * (psi0 ** 2 + psi1 ** 2 + psi2 ** 2))\n-    #print 'tom >>>> ',t0,t1,t2,npa\n+    npa = np.sqrt((psi0 - psi1) ** 2 + (psi1 - psi2) ** 2 + (psi2 - psi0) ** 2) \n+                  / np.sqrt(2 * (psi0 ** 2 + psi1 ** 2 + psi2 ** 2))","path":"dipy/reconst/gqi.py","position":65,"original_position":65,"commit_id":"bedbe03d59d38a45904cb077c77cca8302aec96a","original_commit_id":"bedbe03d59d38a45904cb077c77cca8302aec96a","user":{"login":"arokem","id":118582,"avatar_url":"https://avatars.githubusercontent.com/u/118582?v=3","gravatar_id":"","url":"https://api.github.com/users/arokem","html_url":"https://github.com/arokem","followers_url":"https://api.github.com/users/arokem/followers","following_url":"https://api.github.com/users/arokem/following{/other_user}","gists_url":"https://api.github.com/users/arokem/gists{/gist_id}","starred_url":"https://api.github.com/users/arokem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arokem/subscriptions","organizations_url":"https://api.github.com/users/arokem/orgs","repos_url":"https://api.github.com/users/arokem/repos","events_url":"https://api.github.com/users/arokem/events{/privacy}","received_events_url":"https://api.github.com/users/arokem/received_events","type":"User","site_admin":false},"body":"These two lines need another set of parentheses. Also, the `/` is a binary operator, so please don't start the line with it.","created_at":"2016-03-22T14:52:01Z","updated_at":"2016-03-22T14:52:01Z","html_url":"https://github.com/nipy/dipy/pull/984#discussion_r56999463","pull_request_url":"https://api.github.com/repos/nipy/dipy/pulls/984","_links":{"self":{"href":"https://api.github.com/repos/nipy/dipy/pulls/comments/56999463"},"html":{"href":"https://github.com/nipy/dipy/pull/984#discussion_r56999463"},"pull_request":{"href":"https://api.github.com/repos/nipy/dipy/pulls/984"}}},"pull_request":{"url":"https://api.github.com/repos/nipy/dipy/pulls/984","id":63566508,"html_url":"https://github.com/nipy/dipy/pull/984","diff_url":"https://github.com/nipy/dipy/pull/984.diff","patch_url":"https://github.com/nipy/dipy/pull/984.patch","issue_url":"https://api.github.com/repos/nipy/dipy/issues/984","number":984,"state":"open","locked":false,"title":"PEP8 in reconst #881","user":{"login":"theaverageguy","id":9817962,"avatar_url":"https://avatars.githubusercontent.com/u/9817962?v=3","gravatar_id":"","url":"https://api.github.com/users/theaverageguy","html_url":"https://github.com/theaverageguy","followers_url":"https://api.github.com/users/theaverageguy/followers","following_url":"https://api.github.com/users/theaverageguy/following{/other_user}","gists_url":"https://api.github.com/users/theaverageguy/gists{/gist_id}","starred_url":"https://api.github.com/users/theaverageguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theaverageguy/subscriptions","organizations_url":"https://api.github.com/users/theaverageguy/orgs","repos_url":"https://api.github.com/users/theaverageguy/repos","events_url":"https://api.github.com/users/theaverageguy/events{/privacy}","received_events_url":"https://api.github.com/users/theaverageguy/received_events","type":"User","site_admin":false},"body":"Fixes #881 ","created_at":"2016-03-21T13:52:22Z","updated_at":"2016-03-22T14:52:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74f6d2521de09a3e3079c7f4557206cc75480878","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nipy/dipy/pulls/984/commits","review_comments_url":"https://api.github.com/repos/nipy/dipy/pulls/984/comments","review_comment_url":"https://api.github.com/repos/nipy/dipy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nipy/dipy/issues/984/comments","statuses_url":"https://api.github.com/repos/nipy/dipy/statuses/bedbe03d59d38a45904cb077c77cca8302aec96a","head":{"label":"theaverageguy:Issue#881","ref":"Issue#881","sha":"bedbe03d59d38a45904cb077c77cca8302aec96a","user":{"login":"theaverageguy","id":9817962,"avatar_url":"https://avatars.githubusercontent.com/u/9817962?v=3","gravatar_id":"","url":"https://api.github.com/users/theaverageguy","html_url":"https://github.com/theaverageguy","followers_url":"https://api.github.com/users/theaverageguy/followers","following_url":"https://api.github.com/users/theaverageguy/following{/other_user}","gists_url":"https://api.github.com/users/theaverageguy/gists{/gist_id}","starred_url":"https://api.github.com/users/theaverageguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theaverageguy/subscriptions","organizations_url":"https://api.github.com/users/theaverageguy/orgs","repos_url":"https://api.github.com/users/theaverageguy/repos","events_url":"https://api.github.com/users/theaverageguy/events{/privacy}","received_events_url":"https://api.github.com/users/theaverageguy/received_events","type":"User","site_admin":false},"repo":{"id":52989622,"name":"dipy","full_name":"theaverageguy/dipy","owner":{"login":"theaverageguy","id":9817962,"avatar_url":"https://avatars.githubusercontent.com/u/9817962?v=3","gravatar_id":"","url":"https://api.github.com/users/theaverageguy","html_url":"https://github.com/theaverageguy","followers_url":"https://api.github.com/users/theaverageguy/followers","following_url":"https://api.github.com/users/theaverageguy/following{/other_user}","gists_url":"https://api.github.com/users/theaverageguy/gists{/gist_id}","starred_url":"https://api.github.com/users/theaverageguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theaverageguy/subscriptions","organizations_url":"https://api.github.com/users/theaverageguy/orgs","repos_url":"https://api.github.com/users/theaverageguy/repos","events_url":"https://api.github.com/users/theaverageguy/events{/privacy}","received_events_url":"https://api.github.com/users/theaverageguy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/theaverageguy/dipy","description":"Diffusion MR Imaging in Python","fork":true,"url":"https://api.github.com/repos/theaverageguy/dipy","forks_url":"https://api.github.com/repos/theaverageguy/dipy/forks","keys_url":"https://api.github.com/repos/theaverageguy/dipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theaverageguy/dipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theaverageguy/dipy/teams","hooks_url":"https://api.github.com/repos/theaverageguy/dipy/hooks","issue_events_url":"https://api.github.com/repos/theaverageguy/dipy/issues/events{/number}","events_url":"https://api.github.com/repos/theaverageguy/dipy/events","assignees_url":"https://api.github.com/repos/theaverageguy/dipy/assignees{/user}","branches_url":"https://api.github.com/repos/theaverageguy/dipy/branches{/branch}","tags_url":"https://api.github.com/repos/theaverageguy/dipy/tags","blobs_url":"https://api.github.com/repos/theaverageguy/dipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theaverageguy/dipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theaverageguy/dipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/theaverageguy/dipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theaverageguy/dipy/statuses/{sha}","languages_url":"https://api.github.com/repos/theaverageguy/dipy/languages","stargazers_url":"https://api.github.com/repos/theaverageguy/dipy/stargazers","contributors_url":"https://api.github.com/repos/theaverageguy/dipy/contributors","subscribers_url":"https://api.github.com/repos/theaverageguy/dipy/subscribers","subscription_url":"https://api.github.com/repos/theaverageguy/dipy/subscription","commits_url":"https://api.github.com/repos/theaverageguy/dipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/theaverageguy/dipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/theaverageguy/dipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/theaverageguy/dipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/theaverageguy/dipy/contents/{+path}","compare_url":"https://api.github.com/repos/theaverageguy/dipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theaverageguy/dipy/merges","archive_url":"https://api.github.com/repos/theaverageguy/dipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theaverageguy/dipy/downloads","issues_url":"https://api.github.com/repos/theaverageguy/dipy/issues{/number}","pulls_url":"https://api.github.com/repos/theaverageguy/dipy/pulls{/number}","milestones_url":"https://api.github.com/repos/theaverageguy/dipy/milestones{/number}","notifications_url":"https://api.github.com/repos/theaverageguy/dipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theaverageguy/dipy/labels{/name}","releases_url":"https://api.github.com/repos/theaverageguy/dipy/releases{/id}","deployments_url":"https://api.github.com/repos/theaverageguy/dipy/deployments","created_at":"2016-03-02T19:21:58Z","updated_at":"2016-03-02T19:22:00Z","pushed_at":"2016-03-21T16:58:33Z","git_url":"git://github.com/theaverageguy/dipy.git","ssh_url":"git@github.com:theaverageguy/dipy.git","clone_url":"https://github.com/theaverageguy/dipy.git","svn_url":"https://github.com/theaverageguy/dipy","homepage":"http://dipy.org","size":29833,"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":"nipy:master","ref":"master","sha":"a5b5f22cab1c55536f92bffd3f5b74c6f62e7d46","user":{"login":"nipy","id":233707,"avatar_url":"https://avatars.githubusercontent.com/u/233707?v=3","gravatar_id":"","url":"https://api.github.com/users/nipy","html_url":"https://github.com/nipy","followers_url":"https://api.github.com/users/nipy/followers","following_url":"https://api.github.com/users/nipy/following{/other_user}","gists_url":"https://api.github.com/users/nipy/gists{/gist_id}","starred_url":"https://api.github.com/users/nipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nipy/subscriptions","organizations_url":"https://api.github.com/users/nipy/orgs","repos_url":"https://api.github.com/users/nipy/repos","events_url":"https://api.github.com/users/nipy/events{/privacy}","received_events_url":"https://api.github.com/users/nipy/received_events","type":"Organization","site_admin":false},"repo":{"id":505209,"name":"dipy","full_name":"nipy/dipy","owner":{"login":"nipy","id":233707,"avatar_url":"https://avatars.githubusercontent.com/u/233707?v=3","gravatar_id":"","url":"https://api.github.com/users/nipy","html_url":"https://github.com/nipy","followers_url":"https://api.github.com/users/nipy/followers","following_url":"https://api.github.com/users/nipy/following{/other_user}","gists_url":"https://api.github.com/users/nipy/gists{/gist_id}","starred_url":"https://api.github.com/users/nipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nipy/subscriptions","organizations_url":"https://api.github.com/users/nipy/orgs","repos_url":"https://api.github.com/users/nipy/repos","events_url":"https://api.github.com/users/nipy/events{/privacy}","received_events_url":"https://api.github.com/users/nipy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nipy/dipy","description":"Diffusion MR Imaging in Python","fork":false,"url":"https://api.github.com/repos/nipy/dipy","forks_url":"https://api.github.com/repos/nipy/dipy/forks","keys_url":"https://api.github.com/repos/nipy/dipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nipy/dipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nipy/dipy/teams","hooks_url":"https://api.github.com/repos/nipy/dipy/hooks","issue_events_url":"https://api.github.com/repos/nipy/dipy/issues/events{/number}","events_url":"https://api.github.com/repos/nipy/dipy/events","assignees_url":"https://api.github.com/repos/nipy/dipy/assignees{/user}","branches_url":"https://api.github.com/repos/nipy/dipy/branches{/branch}","tags_url":"https://api.github.com/repos/nipy/dipy/tags","blobs_url":"https://api.github.com/repos/nipy/dipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nipy/dipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nipy/dipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/nipy/dipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nipy/dipy/statuses/{sha}","languages_url":"https://api.github.com/repos/nipy/dipy/languages","stargazers_url":"https://api.github.com/repos/nipy/dipy/stargazers","contributors_url":"https://api.github.com/repos/nipy/dipy/contributors","subscribers_url":"https://api.github.com/repos/nipy/dipy/subscribers","subscription_url":"https://api.github.com/repos/nipy/dipy/subscription","commits_url":"https://api.github.com/repos/nipy/dipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/nipy/dipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/nipy/dipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/nipy/dipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/nipy/dipy/contents/{+path}","compare_url":"https://api.github.com/repos/nipy/dipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nipy/dipy/merges","archive_url":"https://api.github.com/repos/nipy/dipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nipy/dipy/downloads","issues_url":"https://api.github.com/repos/nipy/dipy/issues{/number}","pulls_url":"https://api.github.com/repos/nipy/dipy/pulls{/number}","milestones_url":"https://api.github.com/repos/nipy/dipy/milestones{/number}","notifications_url":"https://api.github.com/repos/nipy/dipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nipy/dipy/labels{/name}","releases_url":"https://api.github.com/repos/nipy/dipy/releases{/id}","deployments_url":"https://api.github.com/repos/nipy/dipy/deployments","created_at":"2010-02-06T11:43:08Z","updated_at":"2016-03-13T07:46:13Z","pushed_at":"2016-03-21T18:49:50Z","git_url":"git://github.com/nipy/dipy.git","ssh_url":"git@github.com:nipy/dipy.git","clone_url":"https://github.com/nipy/dipy.git","svn_url":"https://github.com/nipy/dipy","homepage":"http://dipy.org","size":40149,"stargazers_count":89,"watchers_count":89,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":127,"mirror_url":null,"open_issues_count":139,"forks":127,"open_issues":139,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nipy/dipy/pulls/984"},"html":{"href":"https://github.com/nipy/dipy/pull/984"},"issue":{"href":"https://api.github.com/repos/nipy/dipy/issues/984"},"comments":{"href":"https://api.github.com/repos/nipy/dipy/issues/984/comments"},"review_comments":{"href":"https://api.github.com/repos/nipy/dipy/pulls/984/comments"},"review_comment":{"href":"https://api.github.com/repos/nipy/dipy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nipy/dipy/pulls/984/commits"},"statuses":{"href":"https://api.github.com/repos/nipy/dipy/statuses/bedbe03d59d38a45904cb077c77cca8302aec96a"}}}}