GitHub PullRequestReviewCommentEvent at 2014-06-07 15:05:47
Repository: mne-python
Actor: agramfort
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/pulls/comments/13519793","id":13519793,"diff_hunk":"@@ -0,0 +1,108 @@\n+\"\"\"\n+====================================================================\n+Sensor space least squares regression\n+====================================================================\n+\n+Predict single trial activity from a continuous variable. This example\n+simulates MEG data based on the auditory trials in the sample data set.\n+Each auditory stimulus is assumed to have a different volume; sensor\n+space activity is then modified based on this value. Then a single-\n+trial regression is performed in each sensor and timepoint individually,\n+resulting in an Evoked object which contains the regression coefficient\n+(beta value) for each combination of sensor and timepoint.\n+\n+(See Hauk et al. (2006). The time course of visual word recognition as\n+revealed by linear regression analysis of ERP data. Neuroimage.)\n+\"\"\"\n+# Authors: Tal Linzen <linzen@nyu.edu>\n+#\n+# License: BSD (3-clause)\n+\n+print(__doc__)\n+\n+import numpy as np\n+import scipy\n+\n+import mne\n+from mne import fiff\n+from mne.datasets import sample\n+from mne.stats.regression import ols_epochs\n+\n+data_path = sample.data_path()\n+\n+###############################################################################\n+# Set parameters and read data\n+raw_fname = data_path + '/MEG/sample/sample_audvis_filt-0-40_raw.fif'\n+event_fname = data_path + '/MEG/sample/sample_audvis_filt-0-40_raw-eve.fif'\n+tmin, tmax = -0.2, 0.5\n+event_id = dict(aud_l=1, aud_r=2)\n+\n+# Setup for reading the raw data\n+raw = fiff.Raw(raw_fname, preload=True)","path":"examples/stats/plot_sensor_regression.py","position":41,"original_position":41,"commit_id":"f32ffde8f6318d78f81ce7533cb4cc6f00be163d","original_commit_id":"f32ffde8f6318d78f81ce7533cb4cc6f00be163d","user":{"login":"agramfort","id":161052,"avatar_url":"https://avatars.githubusercontent.com/u/161052?","gravatar_id":"e9758ca665b8c3d8cb3026c114d05833","url":"https://api.github.com/users/agramfort","html_url":"https://github.com/agramfort","followers_url":"https://api.github.com/users/agramfort/followers","following_url":"https://api.github.com/users/agramfort/following{/other_user}","gists_url":"https://api.github.com/users/agramfort/gists{/gist_id}","starred_url":"https://api.github.com/users/agramfort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agramfort/subscriptions","organizations_url":"https://api.github.com/users/agramfort/orgs","repos_url":"https://api.github.com/users/agramfort/repos","events_url":"https://api.github.com/users/agramfort/events{/privacy}","received_events_url":"https://api.github.com/users/agramfort/received_events","type":"User","site_admin":false},"body":"mne.io.Raw\r\n\r\ndid you rebase the branch?","created_at":"2014-06-07T15:05:47Z","updated_at":"2014-06-07T15:05:47Z","html_url":"https://github.com/mne-tools/mne-python/pull/1322#discussion_r13519793","pull_request_url":"https://api.github.com/repos/mne-tools/mne-python/pulls/1322","_links":{"self":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/comments/13519793"},"html":{"href":"https://github.com/mne-tools/mne-python/pull/1322#discussion_r13519793"},"pull_request":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/1322"}}},"pull_request":{"url":"https://api.github.com/repos/mne-tools/mne-python/pulls/1322","id":16851569,"html_url":"https://github.com/mne-tools/mne-python/pull/1322","diff_url":"https://github.com/mne-tools/mne-python/pull/1322.diff","patch_url":"https://github.com/mne-tools/mne-python/pull/1322.patch","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/1322","number":1322,"state":"open","title":"Regression","user":{"login":"t3on","id":1578674,"avatar_url":"https://avatars.githubusercontent.com/u/1578674?","gravatar_id":"64c0136dc35321a315b15e244059c37d","url":"https://api.github.com/users/t3on","html_url":"https://github.com/t3on","followers_url":"https://api.github.com/users/t3on/followers","following_url":"https://api.github.com/users/t3on/following{/other_user}","gists_url":"https://api.github.com/users/t3on/gists{/gist_id}","starred_url":"https://api.github.com/users/t3on/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t3on/subscriptions","organizations_url":"https://api.github.com/users/t3on/orgs","repos_url":"https://api.github.com/users/t3on/repos","events_url":"https://api.github.com/users/t3on/events{/privacy}","received_events_url":"https://api.github.com/users/t3on/received_events","type":"User","site_admin":false},"body":"this PR is in reference to https://github.com/mne-tools/mne-python/pull/1034. It is addressing the API and style comments mentioned in that pull request. It is ready for review. ","created_at":"2014-06-07T05:31:13Z","updated_at":"2014-06-07T15:05:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1849923dfdc7daa04e0fc7480f025700a824c96","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mne-tools/mne-python/pulls/1322/commits","review_comments_url":"https://api.github.com/repos/mne-tools/mne-python/pulls/1322/comments","review_comment_url":"https://api.github.com/repos/mne-tools/mne-python/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/1322/comments","statuses_url":"https://api.github.com/repos/mne-tools/mne-python/statuses/f32ffde8f6318d78f81ce7533cb4cc6f00be163d","head":{"label":"t3on:regression","ref":"regression","sha":"f32ffde8f6318d78f81ce7533cb4cc6f00be163d","user":{"login":"t3on","id":1578674,"avatar_url":"https://avatars.githubusercontent.com/u/1578674?","gravatar_id":"64c0136dc35321a315b15e244059c37d","url":"https://api.github.com/users/t3on","html_url":"https://github.com/t3on","followers_url":"https://api.github.com/users/t3on/followers","following_url":"https://api.github.com/users/t3on/following{/other_user}","gists_url":"https://api.github.com/users/t3on/gists{/gist_id}","starred_url":"https://api.github.com/users/t3on/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t3on/subscriptions","organizations_url":"https://api.github.com/users/t3on/orgs","repos_url":"https://api.github.com/users/t3on/repos","events_url":"https://api.github.com/users/t3on/events{/privacy}","received_events_url":"https://api.github.com/users/t3on/received_events","type":"User","site_admin":false},"repo":{"id":6598396,"name":"mne-python","full_name":"t3on/mne-python","owner":{"login":"t3on","id":1578674,"avatar_url":"https://avatars.githubusercontent.com/u/1578674?","gravatar_id":"64c0136dc35321a315b15e244059c37d","url":"https://api.github.com/users/t3on","html_url":"https://github.com/t3on","followers_url":"https://api.github.com/users/t3on/followers","following_url":"https://api.github.com/users/t3on/following{/other_user}","gists_url":"https://api.github.com/users/t3on/gists{/gist_id}","starred_url":"https://api.github.com/users/t3on/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t3on/subscriptions","organizations_url":"https://api.github.com/users/t3on/orgs","repos_url":"https://api.github.com/users/t3on/repos","events_url":"https://api.github.com/users/t3on/events{/privacy}","received_events_url":"https://api.github.com/users/t3on/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/t3on/mne-python","description":"MNE scripting with Python","fork":true,"url":"https://api.github.com/repos/t3on/mne-python","forks_url":"https://api.github.com/repos/t3on/mne-python/forks","keys_url":"https://api.github.com/repos/t3on/mne-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/t3on/mne-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/t3on/mne-python/teams","hooks_url":"https://api.github.com/repos/t3on/mne-python/hooks","issue_events_url":"https://api.github.com/repos/t3on/mne-python/issues/events{/number}","events_url":"https://api.github.com/repos/t3on/mne-python/events","assignees_url":"https://api.github.com/repos/t3on/mne-python/assignees{/user}","branches_url":"https://api.github.com/repos/t3on/mne-python/branches{/branch}","tags_url":"https://api.github.com/repos/t3on/mne-python/tags","blobs_url":"https://api.github.com/repos/t3on/mne-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/t3on/mne-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/t3on/mne-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/t3on/mne-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/t3on/mne-python/statuses/{sha}","languages_url":"https://api.github.com/repos/t3on/mne-python/languages","stargazers_url":"https://api.github.com/repos/t3on/mne-python/stargazers","contributors_url":"https://api.github.com/repos/t3on/mne-python/contributors","subscribers_url":"https://api.github.com/repos/t3on/mne-python/subscribers","subscription_url":"https://api.github.com/repos/t3on/mne-python/subscription","commits_url":"https://api.github.com/repos/t3on/mne-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/t3on/mne-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/t3on/mne-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/t3on/mne-python/issues/comments/{number}","contents_url":"https://api.github.com/repos/t3on/mne-python/contents/{+path}","compare_url":"https://api.github.com/repos/t3on/mne-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/t3on/mne-python/merges","archive_url":"https://api.github.com/repos/t3on/mne-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/t3on/mne-python/downloads","issues_url":"https://api.github.com/repos/t3on/mne-python/issues{/number}","pulls_url":"https://api.github.com/repos/t3on/mne-python/pulls{/number}","milestones_url":"https://api.github.com/repos/t3on/mne-python/milestones{/number}","notifications_url":"https://api.github.com/repos/t3on/mne-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/t3on/mne-python/labels{/name}","releases_url":"https://api.github.com/repos/t3on/mne-python/releases{/id}","created_at":"2012-11-08T15:32:25Z","updated_at":"2014-06-07T14:16:02Z","pushed_at":"2014-06-07T14:16:02Z","git_url":"git://github.com/t3on/mne-python.git","ssh_url":"git@github.com:t3on/mne-python.git","clone_url":"https://github.com/t3on/mne-python.git","svn_url":"https://github.com/t3on/mne-python","homepage":"http://martinos.org/mne/","size":101928,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mne-tools:master","ref":"master","sha":"5bb8110972df314edbdfefd1c31211af587f3eb6","user":{"login":"mne-tools","id":583875,"avatar_url":"https://avatars.githubusercontent.com/u/583875?","gravatar_id":"416606f0d9a5013c6a985610c6ff56c8","url":"https://api.github.com/users/mne-tools","html_url":"https://github.com/mne-tools","followers_url":"https://api.github.com/users/mne-tools/followers","following_url":"https://api.github.com/users/mne-tools/following{/other_user}","gists_url":"https://api.github.com/users/mne-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/mne-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mne-tools/subscriptions","organizations_url":"https://api.github.com/users/mne-tools/orgs","repos_url":"https://api.github.com/users/mne-tools/repos","events_url":"https://api.github.com/users/mne-tools/events{/privacy}","received_events_url":"https://api.github.com/users/mne-tools/received_events","type":"Organization","site_admin":false},"repo":{"id":1301584,"name":"mne-python","full_name":"mne-tools/mne-python","owner":{"login":"mne-tools","id":583875,"avatar_url":"https://avatars.githubusercontent.com/u/583875?","gravatar_id":"416606f0d9a5013c6a985610c6ff56c8","url":"https://api.github.com/users/mne-tools","html_url":"https://github.com/mne-tools","followers_url":"https://api.github.com/users/mne-tools/followers","following_url":"https://api.github.com/users/mne-tools/following{/other_user}","gists_url":"https://api.github.com/users/mne-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/mne-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mne-tools/subscriptions","organizations_url":"https://api.github.com/users/mne-tools/orgs","repos_url":"https://api.github.com/users/mne-tools/repos","events_url":"https://api.github.com/users/mne-tools/events{/privacy}","received_events_url":"https://api.github.com/users/mne-tools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mne-tools/mne-python","description":"MNE : Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python","fork":false,"url":"https://api.github.com/repos/mne-tools/mne-python","forks_url":"https://api.github.com/repos/mne-tools/mne-python/forks","keys_url":"https://api.github.com/repos/mne-tools/mne-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mne-tools/mne-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mne-tools/mne-python/teams","hooks_url":"https://api.github.com/repos/mne-tools/mne-python/hooks","issue_events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/events{/number}","events_url":"https://api.github.com/repos/mne-tools/mne-python/events","assignees_url":"https://api.github.com/repos/mne-tools/mne-python/assignees{/user}","branches_url":"https://api.github.com/repos/mne-tools/mne-python/branches{/branch}","tags_url":"https://api.github.com/repos/mne-tools/mne-python/tags","blobs_url":"https://api.github.com/repos/mne-tools/mne-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mne-tools/mne-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mne-tools/mne-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/mne-tools/mne-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mne-tools/mne-python/statuses/{sha}","languages_url":"https://api.github.com/repos/mne-tools/mne-python/languages","stargazers_url":"https://api.github.com/repos/mne-tools/mne-python/stargazers","contributors_url":"https://api.github.com/repos/mne-tools/mne-python/contributors","subscribers_url":"https://api.github.com/repos/mne-tools/mne-python/subscribers","subscription_url":"https://api.github.com/repos/mne-tools/mne-python/subscription","commits_url":"https://api.github.com/repos/mne-tools/mne-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/mne-tools/mne-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/mne-tools/mne-python/issues/comments/{number}","contents_url":"https://api.github.com/repos/mne-tools/mne-python/contents/{+path}","compare_url":"https://api.github.com/repos/mne-tools/mne-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mne-tools/mne-python/merges","archive_url":"https://api.github.com/repos/mne-tools/mne-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mne-tools/mne-python/downloads","issues_url":"https://api.github.com/repos/mne-tools/mne-python/issues{/number}","pulls_url":"https://api.github.com/repos/mne-tools/mne-python/pulls{/number}","milestones_url":"https://api.github.com/repos/mne-tools/mne-python/milestones{/number}","notifications_url":"https://api.github.com/repos/mne-tools/mne-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mne-tools/mne-python/labels{/name}","releases_url":"https://api.github.com/repos/mne-tools/mne-python/releases{/id}","created_at":"2011-01-28T03:31:13Z","updated_at":"2014-06-04T00:39:39Z","pushed_at":"2014-06-04T00:39:38Z","git_url":"git://github.com/mne-tools/mne-python.git","ssh_url":"git@github.com:mne-tools/mne-python.git","clone_url":"https://github.com/mne-tools/mne-python.git","svn_url":"https://github.com/mne-tools/mne-python","homepage":"http://martinos.org/mne/","size":157005,"stargazers_count":80,"watchers_count":80,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":76,"mirror_url":null,"open_issues_count":139,"forks":76,"open_issues":139,"watchers":80,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/1322"},"html":{"href":"https://github.com/mne-tools/mne-python/pull/1322"},"issue":{"href":"https://api.github.com/repos/mne-tools/mne-python/issues/1322"},"comments":{"href":"https://api.github.com/repos/mne-tools/mne-python/issues/1322/comments"},"review_comments":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/1322/comments"},"review_comment":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/1322/commits"},"statuses":{"href":"https://api.github.com/repos/mne-tools/mne-python/statuses/f32ffde8f6318d78f81ce7533cb4cc6f00be163d"}}}}