{"action":"created","comment":{"url":"https://api.github.com/repos/IntelPNI/brainiak/pulls/comments/78445913","id":78445913,"diff_hunk":"@@ -126,37 +126,39 @@ def test_can_run():\n         if idx % size == rank:\n             my_R.append(R[idx])\n \n-    htfa = HTFA(\n-        K,\n-        n_subj=n_subj,\n-        max_global_iter=max_global_iter,\n-        max_local_iter=max_local_iter,\n-        max_voxel=max_voxel,\n-        max_tr=max_tr,\n-        verbose=True)\n-    assert htfa, \"Invalid HTFA instance!\"\n-\n-    X = []\n-    for s in np.arange(n_subj):\n-        X.append(np.random.rand(n_voxel, n_tr))\n-    my_data = []\n-    for idx in np.arange(n_subj):\n-        if idx % size == rank:\n-            my_data.append(X[idx])\n-\n-    if rank == 0:\n-        htfa.fit(my_data, R=my_R)\n-        assert True, \"Root successfully running HTFA\"\n-        assert htfa.global_prior_.shape[0] == htfa.prior_bcast_size,\\\n-            \"Invalid result of HTFA! (wrong # element in global_prior)\"\n-        assert htfa.global_posterior_.shape[0] == htfa.prior_bcast_size,\\\n-            \"Invalid result of HTFA! (wrong # element in global_posterior)\"\n-\n-    else:\n-        htfa.fit(my_data, R=my_R)\n-        assert True, \"worker successfully running HTFA\"\n-        print(htfa.local_weights_.shape)\n-        assert htfa.local_weights_.shape[0] == n_tr * K,\\\n-            \"Invalid result of HTFA! (wrong # element in local_weights)\"\n-        assert htfa.local_posterior_.shape[0] == htfa.prior_size,\\\n-            \"Invalid result of HTFA! (wrong # element in local_posterior)\"\n+    for root in range(size):","path":"tests/factoranalysis/test_htfa.py","position":38,"original_position":38,"commit_id":"2a514867fea170e01fe47318e431046c0e526dd4","original_commit_id":"2a514867fea170e01fe47318e431046c0e526dd4","user":{"login":"yidawang","id":4458509,"avatar_url":"https://avatars.githubusercontent.com/u/4458509?v=3","gravatar_id":"","url":"https://api.github.com/users/yidawang","html_url":"https://github.com/yidawang","followers_url":"https://api.github.com/users/yidawang/followers","following_url":"https://api.github.com/users/yidawang/following{/other_user}","gists_url":"https://api.github.com/users/yidawang/gists{/gist_id}","starred_url":"https://api.github.com/users/yidawang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yidawang/subscriptions","organizations_url":"https://api.github.com/users/yidawang/orgs","repos_url":"https://api.github.com/users/yidawang/repos","events_url":"https://api.github.com/users/yidawang/events{/privacy}","received_events_url":"https://api.github.com/users/yidawang/received_events","type":"User","site_admin":false},"body":"I think using `size` is proper in this case","created_at":"2016-09-12T20:15:21Z","updated_at":"2016-09-12T20:15:21Z","html_url":"https://github.com/IntelPNI/brainiak/pull/99#discussion_r78445913","pull_request_url":"https://api.github.com/repos/IntelPNI/brainiak/pulls/99","_links":{"self":{"href":"https://api.github.com/repos/IntelPNI/brainiak/pulls/comments/78445913"},"html":{"href":"https://github.com/IntelPNI/brainiak/pull/99#discussion_r78445913"},"pull_request":{"href":"https://api.github.com/repos/IntelPNI/brainiak/pulls/99"}}},"pull_request":{"url":"https://api.github.com/repos/IntelPNI/brainiak/pulls/99","id":84919261,"html_url":"https://github.com/IntelPNI/brainiak/pull/99","diff_url":"https://github.com/IntelPNI/brainiak/pull/99.diff","patch_url":"https://github.com/IntelPNI/brainiak/pull/99.patch","issue_url":"https://api.github.com/repos/IntelPNI/brainiak/issues/99","number":99,"state":"open","locked":false,"title":"use MPI for tests","user":{"login":"xiazhu","id":8976821,"avatar_url":"https://avatars.githubusercontent.com/u/8976821?v=3","gravatar_id":"","url":"https://api.github.com/users/xiazhu","html_url":"https://github.com/xiazhu","followers_url":"https://api.github.com/users/xiazhu/followers","following_url":"https://api.github.com/users/xiazhu/following{/other_user}","gists_url":"https://api.github.com/users/xiazhu/gists{/gist_id}","starred_url":"https://api.github.com/users/xiazhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiazhu/subscriptions","organizations_url":"https://api.github.com/users/xiazhu/orgs","repos_url":"https://api.github.com/users/xiazhu/repos","events_url":"https://api.github.com/users/xiazhu/events{/privacy}","received_events_url":"https://api.github.com/users/xiazhu/received_events","type":"User","site_admin":false},"body":"\r\nThis is to update  TFA/HTFA tests based on MPI requirement from FCMA code.\r\n\r\nThanks in advance for your review.\r\n","created_at":"2016-09-12T18:21:22Z","updated_at":"2016-09-12T20:15:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fdc3d6a406fb05f04d9f4e8476b54d63ce00ce9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/IntelPNI/brainiak/pulls/99/commits","review_comments_url":"https://api.github.com/repos/IntelPNI/brainiak/pulls/99/comments","review_comment_url":"https://api.github.com/repos/IntelPNI/brainiak/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IntelPNI/brainiak/issues/99/comments","statuses_url":"https://api.github.com/repos/IntelPNI/brainiak/statuses/2a514867fea170e01fe47318e431046c0e526dd4","head":{"label":"xiazhu:master","ref":"master","sha":"2a514867fea170e01fe47318e431046c0e526dd4","user":{"login":"xiazhu","id":8976821,"avatar_url":"https://avatars.githubusercontent.com/u/8976821?v=3","gravatar_id":"","url":"https://api.github.com/users/xiazhu","html_url":"https://github.com/xiazhu","followers_url":"https://api.github.com/users/xiazhu/followers","following_url":"https://api.github.com/users/xiazhu/following{/other_user}","gists_url":"https://api.github.com/users/xiazhu/gists{/gist_id}","starred_url":"https://api.github.com/users/xiazhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiazhu/subscriptions","organizations_url":"https://api.github.com/users/xiazhu/orgs","repos_url":"https://api.github.com/users/xiazhu/repos","events_url":"https://api.github.com/users/xiazhu/events{/privacy}","received_events_url":"https://api.github.com/users/xiazhu/received_events","type":"User","site_admin":false},"repo":{"id":68035295,"name":"brainiak","full_name":"xiazhu/brainiak","owner":{"login":"xiazhu","id":8976821,"avatar_url":"https://avatars.githubusercontent.com/u/8976821?v=3","gravatar_id":"","url":"https://api.github.com/users/xiazhu","html_url":"https://github.com/xiazhu","followers_url":"https://api.github.com/users/xiazhu/followers","following_url":"https://api.github.com/users/xiazhu/following{/other_user}","gists_url":"https://api.github.com/users/xiazhu/gists{/gist_id}","starred_url":"https://api.github.com/users/xiazhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiazhu/subscriptions","organizations_url":"https://api.github.com/users/xiazhu/orgs","repos_url":"https://api.github.com/users/xiazhu/repos","events_url":"https://api.github.com/users/xiazhu/events{/privacy}","received_events_url":"https://api.github.com/users/xiazhu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xiazhu/brainiak","description":"Brain Imaging Analysis Kit","fork":true,"url":"https://api.github.com/repos/xiazhu/brainiak","forks_url":"https://api.github.com/repos/xiazhu/brainiak/forks","keys_url":"https://api.github.com/repos/xiazhu/brainiak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xiazhu/brainiak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xiazhu/brainiak/teams","hooks_url":"https://api.github.com/repos/xiazhu/brainiak/hooks","issue_events_url":"https://api.github.com/repos/xiazhu/brainiak/issues/events{/number}","events_url":"https://api.github.com/repos/xiazhu/brainiak/events","assignees_url":"https://api.github.com/repos/xiazhu/brainiak/assignees{/user}","branches_url":"https://api.github.com/repos/xiazhu/brainiak/branches{/branch}","tags_url":"https://api.github.com/repos/xiazhu/brainiak/tags","blobs_url":"https://api.github.com/repos/xiazhu/brainiak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xiazhu/brainiak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xiazhu/brainiak/git/refs{/sha}","trees_url":"https://api.github.com/repos/xiazhu/brainiak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xiazhu/brainiak/statuses/{sha}","languages_url":"https://api.github.com/repos/xiazhu/brainiak/languages","stargazers_url":"https://api.github.com/repos/xiazhu/brainiak/stargazers","contributors_url":"https://api.github.com/repos/xiazhu/brainiak/contributors","subscribers_url":"https://api.github.com/repos/xiazhu/brainiak/subscribers","subscription_url":"https://api.github.com/repos/xiazhu/brainiak/subscription","commits_url":"https://api.github.com/repos/xiazhu/brainiak/commits{/sha}","git_commits_url":"https://api.github.com/repos/xiazhu/brainiak/git/commits{/sha}","comments_url":"https://api.github.com/repos/xiazhu/brainiak/comments{/number}","issue_comment_url":"https://api.github.com/repos/xiazhu/brainiak/issues/comments{/number}","contents_url":"https://api.github.com/repos/xiazhu/brainiak/contents/{+path}","compare_url":"https://api.github.com/repos/xiazhu/brainiak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xiazhu/brainiak/merges","archive_url":"https://api.github.com/repos/xiazhu/brainiak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xiazhu/brainiak/downloads","issues_url":"https://api.github.com/repos/xiazhu/brainiak/issues{/number}","pulls_url":"https://api.github.com/repos/xiazhu/brainiak/pulls{/number}","milestones_url":"https://api.github.com/repos/xiazhu/brainiak/milestones{/number}","notifications_url":"https://api.github.com/repos/xiazhu/brainiak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xiazhu/brainiak/labels{/name}","releases_url":"https://api.github.com/repos/xiazhu/brainiak/releases{/id}","deployments_url":"https://api.github.com/repos/xiazhu/brainiak/deployments","created_at":"2016-09-12T18:18:15Z","updated_at":"2016-09-12T18:18:16Z","pushed_at":"2016-09-12T18:20:27Z","git_url":"git://github.com/xiazhu/brainiak.git","ssh_url":"git@github.com:xiazhu/brainiak.git","clone_url":"https://github.com/xiazhu/brainiak.git","svn_url":"https://github.com/xiazhu/brainiak","homepage":"","size":174,"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":"IntelPNI:master","ref":"master","sha":"68f04d556417b80efac2542aa09aadc7d43720f5","user":{"login":"IntelPNI","id":10767488,"avatar_url":"https://avatars.githubusercontent.com/u/10767488?v=3","gravatar_id":"","url":"https://api.github.com/users/IntelPNI","html_url":"https://github.com/IntelPNI","followers_url":"https://api.github.com/users/IntelPNI/followers","following_url":"https://api.github.com/users/IntelPNI/following{/other_user}","gists_url":"https://api.github.com/users/IntelPNI/gists{/gist_id}","starred_url":"https://api.github.com/users/IntelPNI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntelPNI/subscriptions","organizations_url":"https://api.github.com/users/IntelPNI/orgs","repos_url":"https://api.github.com/users/IntelPNI/repos","events_url":"https://api.github.com/users/IntelPNI/events{/privacy}","received_events_url":"https://api.github.com/users/IntelPNI/received_events","type":"Organization","site_admin":false},"repo":{"id":51334498,"name":"brainiak","full_name":"IntelPNI/brainiak","owner":{"login":"IntelPNI","id":10767488,"avatar_url":"https://avatars.githubusercontent.com/u/10767488?v=3","gravatar_id":"","url":"https://api.github.com/users/IntelPNI","html_url":"https://github.com/IntelPNI","followers_url":"https://api.github.com/users/IntelPNI/followers","following_url":"https://api.github.com/users/IntelPNI/following{/other_user}","gists_url":"https://api.github.com/users/IntelPNI/gists{/gist_id}","starred_url":"https://api.github.com/users/IntelPNI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntelPNI/subscriptions","organizations_url":"https://api.github.com/users/IntelPNI/orgs","repos_url":"https://api.github.com/users/IntelPNI/repos","events_url":"https://api.github.com/users/IntelPNI/events{/privacy}","received_events_url":"https://api.github.com/users/IntelPNI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IntelPNI/brainiak","description":"Brain Imaging Analysis Kit","fork":false,"url":"https://api.github.com/repos/IntelPNI/brainiak","forks_url":"https://api.github.com/repos/IntelPNI/brainiak/forks","keys_url":"https://api.github.com/repos/IntelPNI/brainiak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IntelPNI/brainiak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IntelPNI/brainiak/teams","hooks_url":"https://api.github.com/repos/IntelPNI/brainiak/hooks","issue_events_url":"https://api.github.com/repos/IntelPNI/brainiak/issues/events{/number}","events_url":"https://api.github.com/repos/IntelPNI/brainiak/events","assignees_url":"https://api.github.com/repos/IntelPNI/brainiak/assignees{/user}","branches_url":"https://api.github.com/repos/IntelPNI/brainiak/branches{/branch}","tags_url":"https://api.github.com/repos/IntelPNI/brainiak/tags","blobs_url":"https://api.github.com/repos/IntelPNI/brainiak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IntelPNI/brainiak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IntelPNI/brainiak/git/refs{/sha}","trees_url":"https://api.github.com/repos/IntelPNI/brainiak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IntelPNI/brainiak/statuses/{sha}","languages_url":"https://api.github.com/repos/IntelPNI/brainiak/languages","stargazers_url":"https://api.github.com/repos/IntelPNI/brainiak/stargazers","contributors_url":"https://api.github.com/repos/IntelPNI/brainiak/contributors","subscribers_url":"https://api.github.com/repos/IntelPNI/brainiak/subscribers","subscription_url":"https://api.github.com/repos/IntelPNI/brainiak/subscription","commits_url":"https://api.github.com/repos/IntelPNI/brainiak/commits{/sha}","git_commits_url":"https://api.github.com/repos/IntelPNI/brainiak/git/commits{/sha}","comments_url":"https://api.github.com/repos/IntelPNI/brainiak/comments{/number}","issue_comment_url":"https://api.github.com/repos/IntelPNI/brainiak/issues/comments{/number}","contents_url":"https://api.github.com/repos/IntelPNI/brainiak/contents/{+path}","compare_url":"https://api.github.com/repos/IntelPNI/brainiak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IntelPNI/brainiak/merges","archive_url":"https://api.github.com/repos/IntelPNI/brainiak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IntelPNI/brainiak/downloads","issues_url":"https://api.github.com/repos/IntelPNI/brainiak/issues{/number}","pulls_url":"https://api.github.com/repos/IntelPNI/brainiak/pulls{/number}","milestones_url":"https://api.github.com/repos/IntelPNI/brainiak/milestones{/number}","notifications_url":"https://api.github.com/repos/IntelPNI/brainiak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IntelPNI/brainiak/labels{/name}","releases_url":"https://api.github.com/repos/IntelPNI/brainiak/releases{/id}","deployments_url":"https://api.github.com/repos/IntelPNI/brainiak/deployments","created_at":"2016-02-08T23:19:27Z","updated_at":"2016-08-29T18:32:02Z","pushed_at":"2016-09-12T18:21:22Z","git_url":"git://github.com/IntelPNI/brainiak.git","ssh_url":"git@github.com:IntelPNI/brainiak.git","clone_url":"https://github.com/IntelPNI/brainiak.git","svn_url":"https://github.com/IntelPNI/brainiak","homepage":"","size":358,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":26,"forks":23,"open_issues":26,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IntelPNI/brainiak/pulls/99"},"html":{"href":"https://github.com/IntelPNI/brainiak/pull/99"},"issue":{"href":"https://api.github.com/repos/IntelPNI/brainiak/issues/99"},"comments":{"href":"https://api.github.com/repos/IntelPNI/brainiak/issues/99/comments"},"review_comments":{"href":"https://api.github.com/repos/IntelPNI/brainiak/pulls/99/comments"},"review_comment":{"href":"https://api.github.com/repos/IntelPNI/brainiak/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IntelPNI/brainiak/pulls/99/commits"},"statuses":{"href":"https://api.github.com/repos/IntelPNI/brainiak/statuses/2a514867fea170e01fe47318e431046c0e526dd4"}}}}
{"actor":{"display_login":"yidawang"}}