{"action":"created","comment":{"url":"https://api.github.com/repos/nipy/dipy/pulls/comments/35059017","id":35059017,"diff_hunk":"@@ -174,7 +174,7 @@ def dist(self, v1, v2):\n             if metric.are_compatible(f1.shape, f2.shape):\n                 distance = metric.dist(f1, f2)\n                 if np.all(f1 == f2):\n-                    assert_equal(distance, 0.)\n+                    assert_almost_equal(distance, 0.)","path":"dipy/segment/tests/test_metric.py","position":5,"original_position":5,"commit_id":"793b454e9251866c1c2109f809e9c69696cb68a1","original_commit_id":"793b454e9251866c1c2109f809e9c69696cb68a1","user":{"login":"matthew-brett","id":67612,"avatar_url":"https://avatars.githubusercontent.com/u/67612?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-brett","html_url":"https://github.com/matthew-brett","followers_url":"https://api.github.com/users/matthew-brett/followers","following_url":"https://api.github.com/users/matthew-brett/following{/other_user}","gists_url":"https://api.github.com/users/matthew-brett/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-brett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-brett/subscriptions","organizations_url":"https://api.github.com/users/matthew-brett/orgs","repos_url":"https://api.github.com/users/matthew-brett/repos","events_url":"https://api.github.com/users/matthew-brett/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-brett/received_events","type":"User","site_admin":false},"body":"Thanks for thinking about this.   Yes, I guess it must be slight differences in the precision of dot, maybe the order or operation or something.   It's a bit surprising to me that a vector dotted with itself in float64 precision would differ by 1e-9 on two platforms, but oh well.\r\n\r\nNo need to add the special case check in the distance code, I was just curious.","created_at":"2015-07-21T00:15:22Z","updated_at":"2015-07-21T00:15:22Z","html_url":"https://github.com/nipy/dipy/pull/686#discussion_r35059017","pull_request_url":"https://api.github.com/repos/nipy/dipy/pulls/686","_links":{"self":{"href":"https://api.github.com/repos/nipy/dipy/pulls/comments/35059017"},"html":{"href":"https://github.com/nipy/dipy/pull/686#discussion_r35059017"},"pull_request":{"href":"https://api.github.com/repos/nipy/dipy/pulls/686"}}},"pull_request":{"url":"https://api.github.com/repos/nipy/dipy/pulls/686","id":40409217,"html_url":"https://github.com/nipy/dipy/pull/686","diff_url":"https://github.com/nipy/dipy/pull/686.diff","patch_url":"https://github.com/nipy/dipy/pull/686.patch","issue_url":"https://api.github.com/repos/nipy/dipy/issues/686","number":686,"state":"open","locked":false,"title":"BF: Make buildbot Pyhon26-32 happy","user":{"login":"MarcCote","id":660004,"avatar_url":"https://avatars.githubusercontent.com/u/660004?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcCote","html_url":"https://github.com/MarcCote","followers_url":"https://api.github.com/users/MarcCote/followers","following_url":"https://api.github.com/users/MarcCote/following{/other_user}","gists_url":"https://api.github.com/users/MarcCote/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcCote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcCote/subscriptions","organizations_url":"https://api.github.com/users/MarcCote/orgs","repos_url":"https://api.github.com/users/MarcCote/repos","events_url":"https://api.github.com/users/MarcCote/events{/privacy}","received_events_url":"https://api.github.com/users/MarcCote/received_events","type":"User","site_admin":false},"body":"Replaced an `assert_equal` with an `assert_almost_equal`.\r\nhttp://nipy.bic.berkeley.edu/builders/dipy-py2.6-32/builds/551/steps/shell_6/logs/stdio","created_at":"2015-07-20T23:38:12Z","updated_at":"2015-07-21T00:15:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc89e6540e7e4caafac2ce6cf768d62daff0e744","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nipy/dipy/pulls/686/commits","review_comments_url":"https://api.github.com/repos/nipy/dipy/pulls/686/comments","review_comment_url":"https://api.github.com/repos/nipy/dipy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nipy/dipy/issues/686/comments","statuses_url":"https://api.github.com/repos/nipy/dipy/statuses/793b454e9251866c1c2109f809e9c69696cb68a1","head":{"label":"MarcCote:fix_cosinemetric_unitest","ref":"fix_cosinemetric_unitest","sha":"793b454e9251866c1c2109f809e9c69696cb68a1","user":{"login":"MarcCote","id":660004,"avatar_url":"https://avatars.githubusercontent.com/u/660004?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcCote","html_url":"https://github.com/MarcCote","followers_url":"https://api.github.com/users/MarcCote/followers","following_url":"https://api.github.com/users/MarcCote/following{/other_user}","gists_url":"https://api.github.com/users/MarcCote/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcCote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcCote/subscriptions","organizations_url":"https://api.github.com/users/MarcCote/orgs","repos_url":"https://api.github.com/users/MarcCote/repos","events_url":"https://api.github.com/users/MarcCote/events{/privacy}","received_events_url":"https://api.github.com/users/MarcCote/received_events","type":"User","site_admin":false},"repo":{"id":8189384,"name":"dipy","full_name":"MarcCote/dipy","owner":{"login":"MarcCote","id":660004,"avatar_url":"https://avatars.githubusercontent.com/u/660004?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcCote","html_url":"https://github.com/MarcCote","followers_url":"https://api.github.com/users/MarcCote/followers","following_url":"https://api.github.com/users/MarcCote/following{/other_user}","gists_url":"https://api.github.com/users/MarcCote/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcCote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcCote/subscriptions","organizations_url":"https://api.github.com/users/MarcCote/orgs","repos_url":"https://api.github.com/users/MarcCote/repos","events_url":"https://api.github.com/users/MarcCote/events{/privacy}","received_events_url":"https://api.github.com/users/MarcCote/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MarcCote/dipy","description":"Diffusion MR Imaging in Python","fork":true,"url":"https://api.github.com/repos/MarcCote/dipy","forks_url":"https://api.github.com/repos/MarcCote/dipy/forks","keys_url":"https://api.github.com/repos/MarcCote/dipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarcCote/dipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarcCote/dipy/teams","hooks_url":"https://api.github.com/repos/MarcCote/dipy/hooks","issue_events_url":"https://api.github.com/repos/MarcCote/dipy/issues/events{/number}","events_url":"https://api.github.com/repos/MarcCote/dipy/events","assignees_url":"https://api.github.com/repos/MarcCote/dipy/assignees{/user}","branches_url":"https://api.github.com/repos/MarcCote/dipy/branches{/branch}","tags_url":"https://api.github.com/repos/MarcCote/dipy/tags","blobs_url":"https://api.github.com/repos/MarcCote/dipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarcCote/dipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarcCote/dipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarcCote/dipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarcCote/dipy/statuses/{sha}","languages_url":"https://api.github.com/repos/MarcCote/dipy/languages","stargazers_url":"https://api.github.com/repos/MarcCote/dipy/stargazers","contributors_url":"https://api.github.com/repos/MarcCote/dipy/contributors","subscribers_url":"https://api.github.com/repos/MarcCote/dipy/subscribers","subscription_url":"https://api.github.com/repos/MarcCote/dipy/subscription","commits_url":"https://api.github.com/repos/MarcCote/dipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarcCote/dipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarcCote/dipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarcCote/dipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarcCote/dipy/contents/{+path}","compare_url":"https://api.github.com/repos/MarcCote/dipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarcCote/dipy/merges","archive_url":"https://api.github.com/repos/MarcCote/dipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarcCote/dipy/downloads","issues_url":"https://api.github.com/repos/MarcCote/dipy/issues{/number}","pulls_url":"https://api.github.com/repos/MarcCote/dipy/pulls{/number}","milestones_url":"https://api.github.com/repos/MarcCote/dipy/milestones{/number}","notifications_url":"https://api.github.com/repos/MarcCote/dipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarcCote/dipy/labels{/name}","releases_url":"https://api.github.com/repos/MarcCote/dipy/releases{/id}","created_at":"2013-02-13T22:36:58Z","updated_at":"2015-05-08T14:13:31Z","pushed_at":"2015-07-20T23:36:52Z","git_url":"git://github.com/MarcCote/dipy.git","ssh_url":"git@github.com:MarcCote/dipy.git","clone_url":"https://github.com/MarcCote/dipy.git","svn_url":"https://github.com/MarcCote/dipy","homepage":"http://dipy.org","size":16566,"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":"eb6ea58028959f4a507d70160dad770193449d66","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}","created_at":"2010-02-06T11:43:08Z","updated_at":"2015-07-17T13:52:15Z","pushed_at":"2015-07-20T23:38:12Z","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":30606,"stargazers_count":61,"watchers_count":61,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":94,"mirror_url":null,"open_issues_count":93,"forks":94,"open_issues":93,"watchers":61,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nipy/dipy/pulls/686"},"html":{"href":"https://github.com/nipy/dipy/pull/686"},"issue":{"href":"https://api.github.com/repos/nipy/dipy/issues/686"},"comments":{"href":"https://api.github.com/repos/nipy/dipy/issues/686/comments"},"review_comments":{"href":"https://api.github.com/repos/nipy/dipy/pulls/686/comments"},"review_comment":{"href":"https://api.github.com/repos/nipy/dipy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nipy/dipy/pulls/686/commits"},"statuses":{"href":"https://api.github.com/repos/nipy/dipy/statuses/793b454e9251866c1c2109f809e9c69696cb68a1"}}}}