{"action":"created","comment":{"url":"https://api.github.com/repos/IntelPNI/brainiak/pulls/comments/110683835","pull_request_review_id":31871501,"id":110683835,"diff_hunk":"@@ -321,34 +192,29 @@ def generate_epochs_info(epoch_list):\n     return epoch_info\n \n \n-def prepare_mvpa_data(data_dir, extension, epoch_file, mask_file):\n-    \"\"\" obtain the data for activity-based model training and prediction\n+def prepare_mvpa_data(images, conditions, mask):\n+    \"\"\"Prepare data for activity-based model training and prediction.\n \n     Average the activity within epochs and z-scoring within subject.\n \n     Parameters\n     ----------\n-    data_dir: str\n-        the path to all subject files\n-    extension: str\n-        the file extension, usually nii.gz or nii\n-    epoch_file: str\n-        the absolute path of the epoch file\n-    mask_file: str\n-        the absolute path of the mask file,\n-        we apply the mask right after reading a file for saving memory\n+    images: Iterable[SpatialImage]","path":"brainiak/fcma/preprocessing.py","position":285,"original_position":285,"commit_id":"020601b10144f84e213c6b844b25a7f7fb25b245","original_commit_id":"020601b10144f84e213c6b844b25a7f7fb25b245","user":{"login":"yidawang","id":4458509,"avatar_url":"https://avatars0.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":"Nibabel.SpatialImage","created_at":"2017-04-10T15:16:51Z","updated_at":"2017-04-10T16:04:34Z","html_url":"https://github.com/IntelPNI/brainiak/pull/206#discussion_r110683835","pull_request_url":"https://api.github.com/repos/IntelPNI/brainiak/pulls/206","_links":{"self":{"href":"https://api.github.com/repos/IntelPNI/brainiak/pulls/comments/110683835"},"html":{"href":"https://github.com/IntelPNI/brainiak/pull/206#discussion_r110683835"},"pull_request":{"href":"https://api.github.com/repos/IntelPNI/brainiak/pulls/206"}}},"pull_request":{"url":"https://api.github.com/repos/IntelPNI/brainiak/pulls/206","id":114924070,"html_url":"https://github.com/IntelPNI/brainiak/pull/206","diff_url":"https://github.com/IntelPNI/brainiak/pull/206.diff","patch_url":"https://github.com/IntelPNI/brainiak/pull/206.patch","issue_url":"https://api.github.com/repos/IntelPNI/brainiak/issues/206","number":206,"state":"open","locked":false,"title":"Add IO and image modules, refactor FCMA","user":{"login":"mihaic","id":165546,"avatar_url":"https://avatars1.githubusercontent.com/u/165546?v=3","gravatar_id":"","url":"https://api.github.com/users/mihaic","html_url":"https://github.com/mihaic","followers_url":"https://api.github.com/users/mihaic/followers","following_url":"https://api.github.com/users/mihaic/following{/other_user}","gists_url":"https://api.github.com/users/mihaic/gists{/gist_id}","starred_url":"https://api.github.com/users/mihaic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihaic/subscriptions","organizations_url":"https://api.github.com/users/mihaic/orgs","repos_url":"https://api.github.com/users/mihaic/repos","events_url":"https://api.github.com/users/mihaic/events{/privacy}","received_events_url":"https://api.github.com/users/mihaic/received_events","type":"User","site_admin":false},"body":"Other PRs will follow to refactor the other packages that have their own\r\nIO functionality and image data structures.","created_at":"2017-04-08T00:56:14Z","updated_at":"2017-04-10T16:04:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50a7afeda521773d13b21932eadc509dfce81c3e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/IntelPNI/brainiak/pulls/206/commits","review_comments_url":"https://api.github.com/repos/IntelPNI/brainiak/pulls/206/comments","review_comment_url":"https://api.github.com/repos/IntelPNI/brainiak/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IntelPNI/brainiak/issues/206/comments","statuses_url":"https://api.github.com/repos/IntelPNI/brainiak/statuses/020601b10144f84e213c6b844b25a7f7fb25b245","head":{"label":"mihaic:add-io-and-image","ref":"add-io-and-image","sha":"020601b10144f84e213c6b844b25a7f7fb25b245","user":{"login":"mihaic","id":165546,"avatar_url":"https://avatars1.githubusercontent.com/u/165546?v=3","gravatar_id":"","url":"https://api.github.com/users/mihaic","html_url":"https://github.com/mihaic","followers_url":"https://api.github.com/users/mihaic/followers","following_url":"https://api.github.com/users/mihaic/following{/other_user}","gists_url":"https://api.github.com/users/mihaic/gists{/gist_id}","starred_url":"https://api.github.com/users/mihaic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihaic/subscriptions","organizations_url":"https://api.github.com/users/mihaic/orgs","repos_url":"https://api.github.com/users/mihaic/repos","events_url":"https://api.github.com/users/mihaic/events{/privacy}","received_events_url":"https://api.github.com/users/mihaic/received_events","type":"User","site_admin":false},"repo":{"id":62847230,"name":"brainiak","full_name":"mihaic/brainiak","owner":{"login":"mihaic","id":165546,"avatar_url":"https://avatars1.githubusercontent.com/u/165546?v=3","gravatar_id":"","url":"https://api.github.com/users/mihaic","html_url":"https://github.com/mihaic","followers_url":"https://api.github.com/users/mihaic/followers","following_url":"https://api.github.com/users/mihaic/following{/other_user}","gists_url":"https://api.github.com/users/mihaic/gists{/gist_id}","starred_url":"https://api.github.com/users/mihaic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihaic/subscriptions","organizations_url":"https://api.github.com/users/mihaic/orgs","repos_url":"https://api.github.com/users/mihaic/repos","events_url":"https://api.github.com/users/mihaic/events{/privacy}","received_events_url":"https://api.github.com/users/mihaic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mihaic/brainiak","description":"Brain Imaging Analysis Kit","fork":true,"url":"https://api.github.com/repos/mihaic/brainiak","forks_url":"https://api.github.com/repos/mihaic/brainiak/forks","keys_url":"https://api.github.com/repos/mihaic/brainiak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mihaic/brainiak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mihaic/brainiak/teams","hooks_url":"https://api.github.com/repos/mihaic/brainiak/hooks","issue_events_url":"https://api.github.com/repos/mihaic/brainiak/issues/events{/number}","events_url":"https://api.github.com/repos/mihaic/brainiak/events","assignees_url":"https://api.github.com/repos/mihaic/brainiak/assignees{/user}","branches_url":"https://api.github.com/repos/mihaic/brainiak/branches{/branch}","tags_url":"https://api.github.com/repos/mihaic/brainiak/tags","blobs_url":"https://api.github.com/repos/mihaic/brainiak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mihaic/brainiak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mihaic/brainiak/git/refs{/sha}","trees_url":"https://api.github.com/repos/mihaic/brainiak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mihaic/brainiak/statuses/{sha}","languages_url":"https://api.github.com/repos/mihaic/brainiak/languages","stargazers_url":"https://api.github.com/repos/mihaic/brainiak/stargazers","contributors_url":"https://api.github.com/repos/mihaic/brainiak/contributors","subscribers_url":"https://api.github.com/repos/mihaic/brainiak/subscribers","subscription_url":"https://api.github.com/repos/mihaic/brainiak/subscription","commits_url":"https://api.github.com/repos/mihaic/brainiak/commits{/sha}","git_commits_url":"https://api.github.com/repos/mihaic/brainiak/git/commits{/sha}","comments_url":"https://api.github.com/repos/mihaic/brainiak/comments{/number}","issue_comment_url":"https://api.github.com/repos/mihaic/brainiak/issues/comments{/number}","contents_url":"https://api.github.com/repos/mihaic/brainiak/contents/{+path}","compare_url":"https://api.github.com/repos/mihaic/brainiak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mihaic/brainiak/merges","archive_url":"https://api.github.com/repos/mihaic/brainiak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mihaic/brainiak/downloads","issues_url":"https://api.github.com/repos/mihaic/brainiak/issues{/number}","pulls_url":"https://api.github.com/repos/mihaic/brainiak/pulls{/number}","milestones_url":"https://api.github.com/repos/mihaic/brainiak/milestones{/number}","notifications_url":"https://api.github.com/repos/mihaic/brainiak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mihaic/brainiak/labels{/name}","releases_url":"https://api.github.com/repos/mihaic/brainiak/releases{/id}","deployments_url":"https://api.github.com/repos/mihaic/brainiak/deployments","created_at":"2016-07-08T00:45:24Z","updated_at":"2016-07-08T00:46:07Z","pushed_at":"2017-04-08T00:49:38Z","git_url":"git://github.com/mihaic/brainiak.git","ssh_url":"git@github.com:mihaic/brainiak.git","clone_url":"https://github.com/mihaic/brainiak.git","svn_url":"https://github.com/mihaic/brainiak","homepage":"","size":1132,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"IntelPNI:master","ref":"master","sha":"07a13ab0df4fd7ab8ba1b8164933c4e15df20f9a","user":{"login":"IntelPNI","id":10767488,"avatar_url":"https://avatars1.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://avatars1.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":"2017-04-07T22:26:25Z","pushed_at":"2017-04-08T00:56:15Z","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":"http://brainiak.org","size":1084,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":37,"forks":30,"open_issues":37,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IntelPNI/brainiak/pulls/206"},"html":{"href":"https://github.com/IntelPNI/brainiak/pull/206"},"issue":{"href":"https://api.github.com/repos/IntelPNI/brainiak/issues/206"},"comments":{"href":"https://api.github.com/repos/IntelPNI/brainiak/issues/206/comments"},"review_comments":{"href":"https://api.github.com/repos/IntelPNI/brainiak/pulls/206/comments"},"review_comment":{"href":"https://api.github.com/repos/IntelPNI/brainiak/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IntelPNI/brainiak/pulls/206/commits"},"statuses":{"href":"https://api.github.com/repos/IntelPNI/brainiak/statuses/020601b10144f84e213c6b844b25a7f7fb25b245"}}}}
{"actor":{"display_login":"yidawang"}}