{"action":"created","comment":{"url":"https://api.github.com/repos/nipy/dipy/pulls/comments/47439156","id":47439156,"diff_hunk":"@@ -953,24 +908,16 @@ def test_em_2d_demons():\n     mapping = optimizer.optimize(static, moving, None)\n     m = optimizer.get_map()\n     assert_equal(mapping, m)\n-    energy_profile = subsample_profile(\n-        optimizer.full_energy_profile, 10)\n-    print(energy_profile)\n-\n-    if USING_VC_SSE2:\n-        expected_profile = \\\n-            [2.50773393, 3.26942324, 1.81684393, 5.44878881, 40.0195918,\n-             31.87030788, 25.15710409, 29.82206485, 196.33114499, 213.86419995]\n-    elif USING_GCC_SSE2:\n-        expected_profile = \\\n-            [2.50773393, 3.26942352, 1.8168445, 5.44879264, 40.01956373,\n-             31.65616398, 32.43115903, 35.24130742, 192.89072697, 195.456909]\n-\n-    assert_array_almost_equal(energy_profile, np.array(expected_profile),\n-                              decimal=5)\n+\n+    warped = mapping.transform(moving)\n+    starting_energy = np.sum((static - moving)**2)\n+    final_energy = np.sum((static - warped)**2)\n+    reduced = 1.0 - final_energy/starting_energy\n+\n+    assert(reduced > 0.9)\n+\n \n if __name__=='__main__':\n-    test_scale_space_exceptions()\n     test_optimizer_exceptions()\n     test_mult_aff()\n     test_diffeomorphic_map_2d()","path":"dipy/align/tests/test_imwarp.py","position":845,"original_position":845,"commit_id":"b6ef1760d18bcec372c30b45aad1d1ff849107f7","original_commit_id":"b6ef1760d18bcec372c30b45aad1d1ff849107f7","user":{"login":"Garyfallidis","id":134276,"avatar_url":"https://avatars.githubusercontent.com/u/134276?v=3","gravatar_id":"","url":"https://api.github.com/users/Garyfallidis","html_url":"https://github.com/Garyfallidis","followers_url":"https://api.github.com/users/Garyfallidis/followers","following_url":"https://api.github.com/users/Garyfallidis/following{/other_user}","gists_url":"https://api.github.com/users/Garyfallidis/gists{/gist_id}","starred_url":"https://api.github.com/users/Garyfallidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Garyfallidis/subscriptions","organizations_url":"https://api.github.com/users/Garyfallidis/orgs","repos_url":"https://api.github.com/users/Garyfallidis/repos","events_url":"https://api.github.com/users/Garyfallidis/events{/privacy}","received_events_url":"https://api.github.com/users/Garyfallidis/received_events","type":"User","site_admin":false},"body":"Please replace calling all the functions in the main and just use \r\n```run_module_suite``` and that will call all available tests in the file.","created_at":"2015-12-13T01:21:32Z","updated_at":"2015-12-13T01:21:32Z","html_url":"https://github.com/nipy/dipy/pull/806#discussion_r47439156","pull_request_url":"https://api.github.com/repos/nipy/dipy/pulls/806","_links":{"self":{"href":"https://api.github.com/repos/nipy/dipy/pulls/comments/47439156"},"html":{"href":"https://github.com/nipy/dipy/pull/806#discussion_r47439156"},"pull_request":{"href":"https://api.github.com/repos/nipy/dipy/pulls/806"}}},"pull_request":{"url":"https://api.github.com/repos/nipy/dipy/pulls/806","id":53201575,"html_url":"https://github.com/nipy/dipy/pull/806","diff_url":"https://github.com/nipy/dipy/pull/806.diff","patch_url":"https://github.com/nipy/dipy/pull/806.patch","issue_url":"https://api.github.com/repos/nipy/dipy/issues/806","number":806,"state":"open","locked":false,"title":"Relax regression tests","user":{"login":"omarocegueda","id":1608583,"avatar_url":"https://avatars.githubusercontent.com/u/1608583?v=3","gravatar_id":"","url":"https://api.github.com/users/omarocegueda","html_url":"https://github.com/omarocegueda","followers_url":"https://api.github.com/users/omarocegueda/followers","following_url":"https://api.github.com/users/omarocegueda/following{/other_user}","gists_url":"https://api.github.com/users/omarocegueda/gists{/gist_id}","starred_url":"https://api.github.com/users/omarocegueda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarocegueda/subscriptions","organizations_url":"https://api.github.com/users/omarocegueda/orgs","repos_url":"https://api.github.com/users/omarocegueda/repos","events_url":"https://api.github.com/users/omarocegueda/events{/privacy}","received_events_url":"https://api.github.com/users/omarocegueda/received_events","type":"User","site_admin":false},"body":"This is a proposal for relaxing the regression tests of the registration module.\r\nThe original idea about the regression tests was to detect subtle changes in the registration module which could affect the overall registration accuracy. Current tests attempt to reproduce the evolution of the energy profile along the full optimization, this is a **very** strict test because it basically means attempting to perform exactly the same sequence of computations with the same precision. However, we have been facing a lot of problems reproducing the full energy profile across platforms, especially in  64 bits windows.\r\n\r\nInstead of requiring the full sequence of computations being the same, this change only measures the final registration result, so the optimization may take different paths depending on the platform, but the final result should be of good quality.","created_at":"2015-12-10T00:53:04Z","updated_at":"2015-12-13T01:21:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd0078c6d8a7377383eff9ef77d21f89eed1e5aa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nipy/dipy/pulls/806/commits","review_comments_url":"https://api.github.com/repos/nipy/dipy/pulls/806/comments","review_comment_url":"https://api.github.com/repos/nipy/dipy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nipy/dipy/issues/806/comments","statuses_url":"https://api.github.com/repos/nipy/dipy/statuses/b6ef1760d18bcec372c30b45aad1d1ff849107f7","head":{"label":"omarocegueda:relax_imwarp_tests","ref":"relax_imwarp_tests","sha":"b6ef1760d18bcec372c30b45aad1d1ff849107f7","user":{"login":"omarocegueda","id":1608583,"avatar_url":"https://avatars.githubusercontent.com/u/1608583?v=3","gravatar_id":"","url":"https://api.github.com/users/omarocegueda","html_url":"https://github.com/omarocegueda","followers_url":"https://api.github.com/users/omarocegueda/followers","following_url":"https://api.github.com/users/omarocegueda/following{/other_user}","gists_url":"https://api.github.com/users/omarocegueda/gists{/gist_id}","starred_url":"https://api.github.com/users/omarocegueda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarocegueda/subscriptions","organizations_url":"https://api.github.com/users/omarocegueda/orgs","repos_url":"https://api.github.com/users/omarocegueda/repos","events_url":"https://api.github.com/users/omarocegueda/events{/privacy}","received_events_url":"https://api.github.com/users/omarocegueda/received_events","type":"User","site_admin":false},"repo":{"id":9781072,"name":"dipy","full_name":"omarocegueda/dipy","owner":{"login":"omarocegueda","id":1608583,"avatar_url":"https://avatars.githubusercontent.com/u/1608583?v=3","gravatar_id":"","url":"https://api.github.com/users/omarocegueda","html_url":"https://github.com/omarocegueda","followers_url":"https://api.github.com/users/omarocegueda/followers","following_url":"https://api.github.com/users/omarocegueda/following{/other_user}","gists_url":"https://api.github.com/users/omarocegueda/gists{/gist_id}","starred_url":"https://api.github.com/users/omarocegueda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarocegueda/subscriptions","organizations_url":"https://api.github.com/users/omarocegueda/orgs","repos_url":"https://api.github.com/users/omarocegueda/repos","events_url":"https://api.github.com/users/omarocegueda/events{/privacy}","received_events_url":"https://api.github.com/users/omarocegueda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/omarocegueda/dipy","description":"Diffusion MR Imaging in Python","fork":true,"url":"https://api.github.com/repos/omarocegueda/dipy","forks_url":"https://api.github.com/repos/omarocegueda/dipy/forks","keys_url":"https://api.github.com/repos/omarocegueda/dipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omarocegueda/dipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omarocegueda/dipy/teams","hooks_url":"https://api.github.com/repos/omarocegueda/dipy/hooks","issue_events_url":"https://api.github.com/repos/omarocegueda/dipy/issues/events{/number}","events_url":"https://api.github.com/repos/omarocegueda/dipy/events","assignees_url":"https://api.github.com/repos/omarocegueda/dipy/assignees{/user}","branches_url":"https://api.github.com/repos/omarocegueda/dipy/branches{/branch}","tags_url":"https://api.github.com/repos/omarocegueda/dipy/tags","blobs_url":"https://api.github.com/repos/omarocegueda/dipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omarocegueda/dipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omarocegueda/dipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/omarocegueda/dipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omarocegueda/dipy/statuses/{sha}","languages_url":"https://api.github.com/repos/omarocegueda/dipy/languages","stargazers_url":"https://api.github.com/repos/omarocegueda/dipy/stargazers","contributors_url":"https://api.github.com/repos/omarocegueda/dipy/contributors","subscribers_url":"https://api.github.com/repos/omarocegueda/dipy/subscribers","subscription_url":"https://api.github.com/repos/omarocegueda/dipy/subscription","commits_url":"https://api.github.com/repos/omarocegueda/dipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/omarocegueda/dipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/omarocegueda/dipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/omarocegueda/dipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/omarocegueda/dipy/contents/{+path}","compare_url":"https://api.github.com/repos/omarocegueda/dipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omarocegueda/dipy/merges","archive_url":"https://api.github.com/repos/omarocegueda/dipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omarocegueda/dipy/downloads","issues_url":"https://api.github.com/repos/omarocegueda/dipy/issues{/number}","pulls_url":"https://api.github.com/repos/omarocegueda/dipy/pulls{/number}","milestones_url":"https://api.github.com/repos/omarocegueda/dipy/milestones{/number}","notifications_url":"https://api.github.com/repos/omarocegueda/dipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omarocegueda/dipy/labels{/name}","releases_url":"https://api.github.com/repos/omarocegueda/dipy/releases{/id}","created_at":"2013-04-30T22:05:45Z","updated_at":"2015-04-21T20:08:08Z","pushed_at":"2015-12-11T02:29:07Z","git_url":"git://github.com/omarocegueda/dipy.git","ssh_url":"git@github.com:omarocegueda/dipy.git","clone_url":"https://github.com/omarocegueda/dipy.git","svn_url":"https://github.com/omarocegueda/dipy","homepage":"http://dipy.org","size":18542,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"nipy:master","ref":"master","sha":"deff9e61cae32b950b24b0de57e8fbde43f66f8f","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-12-03T16:16:22Z","pushed_at":"2015-12-13T00:16:32Z","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":28597,"stargazers_count":73,"watchers_count":73,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":109,"mirror_url":null,"open_issues_count":102,"forks":109,"open_issues":102,"watchers":73,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nipy/dipy/pulls/806"},"html":{"href":"https://github.com/nipy/dipy/pull/806"},"issue":{"href":"https://api.github.com/repos/nipy/dipy/issues/806"},"comments":{"href":"https://api.github.com/repos/nipy/dipy/issues/806/comments"},"review_comments":{"href":"https://api.github.com/repos/nipy/dipy/pulls/806/comments"},"review_comment":{"href":"https://api.github.com/repos/nipy/dipy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nipy/dipy/pulls/806/commits"},"statuses":{"href":"https://api.github.com/repos/nipy/dipy/statuses/b6ef1760d18bcec372c30b45aad1d1ff849107f7"}}}}