{"action":"created","comment":{"url":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls/comments/31876487","id":31876487,"diff_hunk":"@@ -78,7 +124,17 @@ class ProjectionRegionEEG(framework.ProjectionRegionEEGFramework,\n         \n     \n     \"\"\"\n-    pass\n+    @staticmethod\n+    def from_file(source_file='projection_EEG_region.npy', instance=None):","path":"tvb/datatypes/projections.py","position":null,"original_position":69,"commit_id":"e06a2cb463bd55ecdc87736a99458ad4cee72e6d","original_commit_id":"8bb95b9cd3b8a484044b2742d5cf027df2eceb00","user":{"login":"timpx","id":5063219,"avatar_url":"https://avatars.githubusercontent.com/u/5063219?v=3","gravatar_id":"","url":"https://api.github.com/users/timpx","html_url":"https://github.com/timpx","followers_url":"https://api.github.com/users/timpx/followers","following_url":"https://api.github.com/users/timpx/following{/other_user}","gists_url":"https://api.github.com/users/timpx/gists{/gist_id}","starred_url":"https://api.github.com/users/timpx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timpx/subscriptions","organizations_url":"https://api.github.com/users/timpx/orgs","repos_url":"https://api.github.com/users/timpx/repos","events_url":"https://api.github.com/users/timpx/events{/privacy}","received_events_url":"https://api.github.com/users/timpx/received_events","type":"User","site_admin":false},"body":"but I allow both methods: if a mat file is provided, they we assume it's a bst file, otherwise if npy, we assume you did it yourself\n\n\nOn Sun, Jun 7, 2015, at 02:15 PM, marmaduke woodman wrote:\n> In tvb/datatypes/projections.py[1]:\n\n\n> > @@ -78,7 +124,17 @@ class\n> > ProjectionRegionEEG(framework.ProjectionRegionEEGFramework,\n>\n>\n>      \"\"\"\n> -    pass\n> +    @staticmethod\n> +    def from_file(source_file='projection_EEG_region.npy',\n>      instance=None): reading from bst .mat means not needing an\n>      intermediate step to generate the npy file which is slightly more\n>      trustworthy, but we can trust you this time ;)\n\n\n> — Reply to this email directly or view it on GitHub[2].\n\n>\n\n\n\nLinks:\n\n  1. https://github.com/the-virtual-brain/tvb-library/pull/52#discussion_r31876394\n  2. https://github.com/the-virtual-brain/tvb-library/pull/52/files#r31876394\n","created_at":"2015-06-07T12:28:21Z","updated_at":"2015-06-07T12:28:21Z","html_url":"https://github.com/the-virtual-brain/tvb-library/pull/52#discussion_r31876487","pull_request_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls/comments/31876487"},"html":{"href":"https://github.com/the-virtual-brain/tvb-library/pull/52#discussion_r31876487"},"pull_request":{"href":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls/52","id":37091138,"html_url":"https://github.com/the-virtual-brain/tvb-library/pull/52","diff_url":"https://github.com/the-virtual-brain/tvb-library/pull/52.diff","patch_url":"https://github.com/the-virtual-brain/tvb-library/pull/52.patch","issue_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/issues/52","number":52,"state":"open","locked":false,"title":"suggestion for easy import of projections matrix in TVB scientific library","user":{"login":"timpx","id":5063219,"avatar_url":"https://avatars.githubusercontent.com/u/5063219?v=3","gravatar_id":"","url":"https://api.github.com/users/timpx","html_url":"https://github.com/timpx","followers_url":"https://api.github.com/users/timpx/followers","following_url":"https://api.github.com/users/timpx/following{/other_user}","gists_url":"https://api.github.com/users/timpx/gists{/gist_id}","starred_url":"https://api.github.com/users/timpx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timpx/subscriptions","organizations_url":"https://api.github.com/users/timpx/orgs","repos_url":"https://api.github.com/users/timpx/repos","events_url":"https://api.github.com/users/timpx/events{/privacy}","received_events_url":"https://api.github.com/users/timpx/received_events","type":"User","site_admin":false},"body":"Currently they are no way of loading the default projection matrices in the TVB scientific library. This is a suggestion how to do it.","created_at":"2015-06-06T14:29:24Z","updated_at":"2015-06-07T12:28:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e68ccb2b114201d474b6e996fd9e6816adfd9b9b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls/52/commits","review_comments_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls/52/comments","review_comment_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/issues/52/comments","statuses_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/statuses/e06a2cb463bd55ecdc87736a99458ad4cee72e6d","head":{"label":"timpx:trunk","ref":"trunk","sha":"e06a2cb463bd55ecdc87736a99458ad4cee72e6d","user":{"login":"timpx","id":5063219,"avatar_url":"https://avatars.githubusercontent.com/u/5063219?v=3","gravatar_id":"","url":"https://api.github.com/users/timpx","html_url":"https://github.com/timpx","followers_url":"https://api.github.com/users/timpx/followers","following_url":"https://api.github.com/users/timpx/following{/other_user}","gists_url":"https://api.github.com/users/timpx/gists{/gist_id}","starred_url":"https://api.github.com/users/timpx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timpx/subscriptions","organizations_url":"https://api.github.com/users/timpx/orgs","repos_url":"https://api.github.com/users/timpx/repos","events_url":"https://api.github.com/users/timpx/events{/privacy}","received_events_url":"https://api.github.com/users/timpx/received_events","type":"User","site_admin":false},"repo":{"id":36982534,"name":"tvb-library","full_name":"timpx/tvb-library","owner":{"login":"timpx","id":5063219,"avatar_url":"https://avatars.githubusercontent.com/u/5063219?v=3","gravatar_id":"","url":"https://api.github.com/users/timpx","html_url":"https://github.com/timpx","followers_url":"https://api.github.com/users/timpx/followers","following_url":"https://api.github.com/users/timpx/following{/other_user}","gists_url":"https://api.github.com/users/timpx/gists{/gist_id}","starred_url":"https://api.github.com/users/timpx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timpx/subscriptions","organizations_url":"https://api.github.com/users/timpx/orgs","repos_url":"https://api.github.com/users/timpx/repos","events_url":"https://api.github.com/users/timpx/events{/privacy}","received_events_url":"https://api.github.com/users/timpx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timpx/tvb-library","description":"The science behind The Virtual Brain","fork":true,"url":"https://api.github.com/repos/timpx/tvb-library","forks_url":"https://api.github.com/repos/timpx/tvb-library/forks","keys_url":"https://api.github.com/repos/timpx/tvb-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timpx/tvb-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timpx/tvb-library/teams","hooks_url":"https://api.github.com/repos/timpx/tvb-library/hooks","issue_events_url":"https://api.github.com/repos/timpx/tvb-library/issues/events{/number}","events_url":"https://api.github.com/repos/timpx/tvb-library/events","assignees_url":"https://api.github.com/repos/timpx/tvb-library/assignees{/user}","branches_url":"https://api.github.com/repos/timpx/tvb-library/branches{/branch}","tags_url":"https://api.github.com/repos/timpx/tvb-library/tags","blobs_url":"https://api.github.com/repos/timpx/tvb-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timpx/tvb-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timpx/tvb-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/timpx/tvb-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timpx/tvb-library/statuses/{sha}","languages_url":"https://api.github.com/repos/timpx/tvb-library/languages","stargazers_url":"https://api.github.com/repos/timpx/tvb-library/stargazers","contributors_url":"https://api.github.com/repos/timpx/tvb-library/contributors","subscribers_url":"https://api.github.com/repos/timpx/tvb-library/subscribers","subscription_url":"https://api.github.com/repos/timpx/tvb-library/subscription","commits_url":"https://api.github.com/repos/timpx/tvb-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/timpx/tvb-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/timpx/tvb-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/timpx/tvb-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/timpx/tvb-library/contents/{+path}","compare_url":"https://api.github.com/repos/timpx/tvb-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timpx/tvb-library/merges","archive_url":"https://api.github.com/repos/timpx/tvb-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timpx/tvb-library/downloads","issues_url":"https://api.github.com/repos/timpx/tvb-library/issues{/number}","pulls_url":"https://api.github.com/repos/timpx/tvb-library/pulls{/number}","milestones_url":"https://api.github.com/repos/timpx/tvb-library/milestones{/number}","notifications_url":"https://api.github.com/repos/timpx/tvb-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timpx/tvb-library/labels{/name}","releases_url":"https://api.github.com/repos/timpx/tvb-library/releases{/id}","created_at":"2015-06-06T14:15:44Z","updated_at":"2015-06-06T14:15:47Z","pushed_at":"2015-06-07T12:08:19Z","git_url":"git://github.com/timpx/tvb-library.git","ssh_url":"git@github.com:timpx/tvb-library.git","clone_url":"https://github.com/timpx/tvb-library.git","svn_url":"https://github.com/timpx/tvb-library","homepage":"http://www.thevirtualbrain.org","size":142047,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"trunk"}},"base":{"label":"the-virtual-brain:trunk","ref":"trunk","sha":"fcee8baa4152d282748bbb723ed4b76db2996d31","user":{"login":"the-virtual-brain","id":3657317,"avatar_url":"https://avatars.githubusercontent.com/u/3657317?v=3","gravatar_id":"","url":"https://api.github.com/users/the-virtual-brain","html_url":"https://github.com/the-virtual-brain","followers_url":"https://api.github.com/users/the-virtual-brain/followers","following_url":"https://api.github.com/users/the-virtual-brain/following{/other_user}","gists_url":"https://api.github.com/users/the-virtual-brain/gists{/gist_id}","starred_url":"https://api.github.com/users/the-virtual-brain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-virtual-brain/subscriptions","organizations_url":"https://api.github.com/users/the-virtual-brain/orgs","repos_url":"https://api.github.com/users/the-virtual-brain/repos","events_url":"https://api.github.com/users/the-virtual-brain/events{/privacy}","received_events_url":"https://api.github.com/users/the-virtual-brain/received_events","type":"Organization","site_admin":false},"repo":{"id":9076049,"name":"tvb-library","full_name":"the-virtual-brain/tvb-library","owner":{"login":"the-virtual-brain","id":3657317,"avatar_url":"https://avatars.githubusercontent.com/u/3657317?v=3","gravatar_id":"","url":"https://api.github.com/users/the-virtual-brain","html_url":"https://github.com/the-virtual-brain","followers_url":"https://api.github.com/users/the-virtual-brain/followers","following_url":"https://api.github.com/users/the-virtual-brain/following{/other_user}","gists_url":"https://api.github.com/users/the-virtual-brain/gists{/gist_id}","starred_url":"https://api.github.com/users/the-virtual-brain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-virtual-brain/subscriptions","organizations_url":"https://api.github.com/users/the-virtual-brain/orgs","repos_url":"https://api.github.com/users/the-virtual-brain/repos","events_url":"https://api.github.com/users/the-virtual-brain/events{/privacy}","received_events_url":"https://api.github.com/users/the-virtual-brain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/the-virtual-brain/tvb-library","description":"The science behind The Virtual Brain","fork":false,"url":"https://api.github.com/repos/the-virtual-brain/tvb-library","forks_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/forks","keys_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/teams","hooks_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/hooks","issue_events_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/issues/events{/number}","events_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/events","assignees_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/assignees{/user}","branches_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/branches{/branch}","tags_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/tags","blobs_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/statuses/{sha}","languages_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/languages","stargazers_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/stargazers","contributors_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/contributors","subscribers_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/subscribers","subscription_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/subscription","commits_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/contents/{+path}","compare_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/merges","archive_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/downloads","issues_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/issues{/number}","pulls_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls{/number}","milestones_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/milestones{/number}","notifications_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/labels{/name}","releases_url":"https://api.github.com/repos/the-virtual-brain/tvb-library/releases{/id}","created_at":"2013-03-28T11:51:41Z","updated_at":"2015-05-20T04:30:04Z","pushed_at":"2015-06-07T12:08:19Z","git_url":"git://github.com/the-virtual-brain/tvb-library.git","ssh_url":"git@github.com:the-virtual-brain/tvb-library.git","clone_url":"https://github.com/the-virtual-brain/tvb-library.git","svn_url":"https://github.com/the-virtual-brain/tvb-library","homepage":"http://www.thevirtualbrain.org","size":143071,"stargazers_count":22,"watchers_count":22,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":11,"forks":41,"open_issues":11,"watchers":22,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls/52"},"html":{"href":"https://github.com/the-virtual-brain/tvb-library/pull/52"},"issue":{"href":"https://api.github.com/repos/the-virtual-brain/tvb-library/issues/52"},"comments":{"href":"https://api.github.com/repos/the-virtual-brain/tvb-library/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/the-virtual-brain/tvb-library/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/the-virtual-brain/tvb-library/statuses/e06a2cb463bd55ecdc87736a99458ad4cee72e6d"}}}}