{"action":"created","comment":{"url":"https://api.github.com/repos/LABSN/mnefun/pulls/comments/68248004","id":68248004,"diff_hunk":"@@ -0,0 +1,41 @@\n+#!/usr/bin/env python\n+# -*- coding: utf-8 -*-\n+\"\"\"\n+Plot signal-to-noise of continuous HPI coils as a function of time.\n+Works by fitting a general linear model (HPI freqs, line freqs, DC, slope) to\n+the data, and comparing estimated HPI powers with the residual (=variance\n+unexplained by the model).\n+Window length for SNR estimates can be specified on the command line.\n+Longer windows will by nature include more low frequencies and thus have\n+larger residual variance (lower SNR).\n+\"\"\"\n+\n+import sys\n+import os\n+sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir))","path":"bin/plot_chpi_snr.py","position":15,"original_position":15,"commit_id":"aef8766be42406a1d1f934a44c90ff5e7adb29b4","original_commit_id":"aef8766be42406a1d1f934a44c90ff5e7adb29b4","user":{"login":"Eric89GXL","id":2365790,"avatar_url":"https://avatars.githubusercontent.com/u/2365790?v=3","gravatar_id":"","url":"https://api.github.com/users/Eric89GXL","html_url":"https://github.com/Eric89GXL","followers_url":"https://api.github.com/users/Eric89GXL/followers","following_url":"https://api.github.com/users/Eric89GXL/following{/other_user}","gists_url":"https://api.github.com/users/Eric89GXL/gists{/gist_id}","starred_url":"https://api.github.com/users/Eric89GXL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eric89GXL/subscriptions","organizations_url":"https://api.github.com/users/Eric89GXL/orgs","repos_url":"https://api.github.com/users/Eric89GXL/repos","events_url":"https://api.github.com/users/Eric89GXL/events{/privacy}","received_events_url":"https://api.github.com/users/Eric89GXL/received_events","type":"User","site_admin":false},"body":"(now that you've added your script to `setup.py`, you might need to re-run `python setup.py develop` to get it to install a wrapper to your script)","created_at":"2016-06-23T14:45:13Z","updated_at":"2016-06-23T14:45:13Z","html_url":"https://github.com/LABSN/mnefun/pull/134#discussion_r68248004","pull_request_url":"https://api.github.com/repos/LABSN/mnefun/pulls/134","_links":{"self":{"href":"https://api.github.com/repos/LABSN/mnefun/pulls/comments/68248004"},"html":{"href":"https://github.com/LABSN/mnefun/pull/134#discussion_r68248004"},"pull_request":{"href":"https://api.github.com/repos/LABSN/mnefun/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/LABSN/mnefun/pulls/134","id":74242626,"html_url":"https://github.com/LABSN/mnefun/pull/134","diff_url":"https://github.com/LABSN/mnefun/pull/134.diff","patch_url":"https://github.com/LABSN/mnefun/pull/134.patch","issue_url":"https://api.github.com/repos/LABSN/mnefun/issues/134","number":134,"state":"open","locked":false,"title":"refactor into mnefun / bin","user":{"login":"jjnurminen","id":8491321,"avatar_url":"https://avatars.githubusercontent.com/u/8491321?v=3","gravatar_id":"","url":"https://api.github.com/users/jjnurminen","html_url":"https://github.com/jjnurminen","followers_url":"https://api.github.com/users/jjnurminen/followers","following_url":"https://api.github.com/users/jjnurminen/following{/other_user}","gists_url":"https://api.github.com/users/jjnurminen/gists{/gist_id}","starred_url":"https://api.github.com/users/jjnurminen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjnurminen/subscriptions","organizations_url":"https://api.github.com/users/jjnurminen/orgs","repos_url":"https://api.github.com/users/jjnurminen/repos","events_url":"https://api.github.com/users/jjnurminen/events{/privacy}","received_events_url":"https://api.github.com/users/jjnurminen/received_events","type":"User","site_admin":false},"body":"I had to modify sys.path in the beginning of the executable script to import mnefun. Let me know if you prefer some other solution.","created_at":"2016-06-17T13:30:43Z","updated_at":"2016-06-23T14:45:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b1272b55b08032a27bb5042695b9ae47f3b4f3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LABSN/mnefun/pulls/134/commits","review_comments_url":"https://api.github.com/repos/LABSN/mnefun/pulls/134/comments","review_comment_url":"https://api.github.com/repos/LABSN/mnefun/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LABSN/mnefun/issues/134/comments","statuses_url":"https://api.github.com/repos/LABSN/mnefun/statuses/aef8766be42406a1d1f934a44c90ff5e7adb29b4","head":{"label":"jjnurminen:chpi","ref":"chpi","sha":"aef8766be42406a1d1f934a44c90ff5e7adb29b4","user":{"login":"jjnurminen","id":8491321,"avatar_url":"https://avatars.githubusercontent.com/u/8491321?v=3","gravatar_id":"","url":"https://api.github.com/users/jjnurminen","html_url":"https://github.com/jjnurminen","followers_url":"https://api.github.com/users/jjnurminen/followers","following_url":"https://api.github.com/users/jjnurminen/following{/other_user}","gists_url":"https://api.github.com/users/jjnurminen/gists{/gist_id}","starred_url":"https://api.github.com/users/jjnurminen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjnurminen/subscriptions","organizations_url":"https://api.github.com/users/jjnurminen/orgs","repos_url":"https://api.github.com/users/jjnurminen/repos","events_url":"https://api.github.com/users/jjnurminen/events{/privacy}","received_events_url":"https://api.github.com/users/jjnurminen/received_events","type":"User","site_admin":false},"repo":{"id":61375504,"name":"mnefun","full_name":"jjnurminen/mnefun","owner":{"login":"jjnurminen","id":8491321,"avatar_url":"https://avatars.githubusercontent.com/u/8491321?v=3","gravatar_id":"","url":"https://api.github.com/users/jjnurminen","html_url":"https://github.com/jjnurminen","followers_url":"https://api.github.com/users/jjnurminen/followers","following_url":"https://api.github.com/users/jjnurminen/following{/other_user}","gists_url":"https://api.github.com/users/jjnurminen/gists{/gist_id}","starred_url":"https://api.github.com/users/jjnurminen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjnurminen/subscriptions","organizations_url":"https://api.github.com/users/jjnurminen/orgs","repos_url":"https://api.github.com/users/jjnurminen/repos","events_url":"https://api.github.com/users/jjnurminen/events{/privacy}","received_events_url":"https://api.github.com/users/jjnurminen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jjnurminen/mnefun","description":"Facilitating lab integration with mne-python","fork":true,"url":"https://api.github.com/repos/jjnurminen/mnefun","forks_url":"https://api.github.com/repos/jjnurminen/mnefun/forks","keys_url":"https://api.github.com/repos/jjnurminen/mnefun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jjnurminen/mnefun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jjnurminen/mnefun/teams","hooks_url":"https://api.github.com/repos/jjnurminen/mnefun/hooks","issue_events_url":"https://api.github.com/repos/jjnurminen/mnefun/issues/events{/number}","events_url":"https://api.github.com/repos/jjnurminen/mnefun/events","assignees_url":"https://api.github.com/repos/jjnurminen/mnefun/assignees{/user}","branches_url":"https://api.github.com/repos/jjnurminen/mnefun/branches{/branch}","tags_url":"https://api.github.com/repos/jjnurminen/mnefun/tags","blobs_url":"https://api.github.com/repos/jjnurminen/mnefun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jjnurminen/mnefun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jjnurminen/mnefun/git/refs{/sha}","trees_url":"https://api.github.com/repos/jjnurminen/mnefun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jjnurminen/mnefun/statuses/{sha}","languages_url":"https://api.github.com/repos/jjnurminen/mnefun/languages","stargazers_url":"https://api.github.com/repos/jjnurminen/mnefun/stargazers","contributors_url":"https://api.github.com/repos/jjnurminen/mnefun/contributors","subscribers_url":"https://api.github.com/repos/jjnurminen/mnefun/subscribers","subscription_url":"https://api.github.com/repos/jjnurminen/mnefun/subscription","commits_url":"https://api.github.com/repos/jjnurminen/mnefun/commits{/sha}","git_commits_url":"https://api.github.com/repos/jjnurminen/mnefun/git/commits{/sha}","comments_url":"https://api.github.com/repos/jjnurminen/mnefun/comments{/number}","issue_comment_url":"https://api.github.com/repos/jjnurminen/mnefun/issues/comments{/number}","contents_url":"https://api.github.com/repos/jjnurminen/mnefun/contents/{+path}","compare_url":"https://api.github.com/repos/jjnurminen/mnefun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jjnurminen/mnefun/merges","archive_url":"https://api.github.com/repos/jjnurminen/mnefun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jjnurminen/mnefun/downloads","issues_url":"https://api.github.com/repos/jjnurminen/mnefun/issues{/number}","pulls_url":"https://api.github.com/repos/jjnurminen/mnefun/pulls{/number}","milestones_url":"https://api.github.com/repos/jjnurminen/mnefun/milestones{/number}","notifications_url":"https://api.github.com/repos/jjnurminen/mnefun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jjnurminen/mnefun/labels{/name}","releases_url":"https://api.github.com/repos/jjnurminen/mnefun/releases{/id}","deployments_url":"https://api.github.com/repos/jjnurminen/mnefun/deployments","created_at":"2016-06-17T13:27:38Z","updated_at":"2016-06-17T13:27:39Z","pushed_at":"2016-06-23T13:48:54Z","git_url":"git://github.com/jjnurminen/mnefun.git","ssh_url":"git@github.com:jjnurminen/mnefun.git","clone_url":"https://github.com/jjnurminen/mnefun.git","svn_url":"https://github.com/jjnurminen/mnefun","homepage":null,"size":911,"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":"LABSN:master","ref":"master","sha":"90eac01c90141d20fc2b80f4c03386e47d626c58","user":{"login":"LABSN","id":3766097,"avatar_url":"https://avatars.githubusercontent.com/u/3766097?v=3","gravatar_id":"","url":"https://api.github.com/users/LABSN","html_url":"https://github.com/LABSN","followers_url":"https://api.github.com/users/LABSN/followers","following_url":"https://api.github.com/users/LABSN/following{/other_user}","gists_url":"https://api.github.com/users/LABSN/gists{/gist_id}","starred_url":"https://api.github.com/users/LABSN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LABSN/subscriptions","organizations_url":"https://api.github.com/users/LABSN/orgs","repos_url":"https://api.github.com/users/LABSN/repos","events_url":"https://api.github.com/users/LABSN/events{/privacy}","received_events_url":"https://api.github.com/users/LABSN/received_events","type":"Organization","site_admin":false},"repo":{"id":17719360,"name":"mnefun","full_name":"LABSN/mnefun","owner":{"login":"LABSN","id":3766097,"avatar_url":"https://avatars.githubusercontent.com/u/3766097?v=3","gravatar_id":"","url":"https://api.github.com/users/LABSN","html_url":"https://github.com/LABSN","followers_url":"https://api.github.com/users/LABSN/followers","following_url":"https://api.github.com/users/LABSN/following{/other_user}","gists_url":"https://api.github.com/users/LABSN/gists{/gist_id}","starred_url":"https://api.github.com/users/LABSN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LABSN/subscriptions","organizations_url":"https://api.github.com/users/LABSN/orgs","repos_url":"https://api.github.com/users/LABSN/repos","events_url":"https://api.github.com/users/LABSN/events{/privacy}","received_events_url":"https://api.github.com/users/LABSN/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LABSN/mnefun","description":"Facilitating lab integration with mne-python","fork":false,"url":"https://api.github.com/repos/LABSN/mnefun","forks_url":"https://api.github.com/repos/LABSN/mnefun/forks","keys_url":"https://api.github.com/repos/LABSN/mnefun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LABSN/mnefun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LABSN/mnefun/teams","hooks_url":"https://api.github.com/repos/LABSN/mnefun/hooks","issue_events_url":"https://api.github.com/repos/LABSN/mnefun/issues/events{/number}","events_url":"https://api.github.com/repos/LABSN/mnefun/events","assignees_url":"https://api.github.com/repos/LABSN/mnefun/assignees{/user}","branches_url":"https://api.github.com/repos/LABSN/mnefun/branches{/branch}","tags_url":"https://api.github.com/repos/LABSN/mnefun/tags","blobs_url":"https://api.github.com/repos/LABSN/mnefun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LABSN/mnefun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LABSN/mnefun/git/refs{/sha}","trees_url":"https://api.github.com/repos/LABSN/mnefun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LABSN/mnefun/statuses/{sha}","languages_url":"https://api.github.com/repos/LABSN/mnefun/languages","stargazers_url":"https://api.github.com/repos/LABSN/mnefun/stargazers","contributors_url":"https://api.github.com/repos/LABSN/mnefun/contributors","subscribers_url":"https://api.github.com/repos/LABSN/mnefun/subscribers","subscription_url":"https://api.github.com/repos/LABSN/mnefun/subscription","commits_url":"https://api.github.com/repos/LABSN/mnefun/commits{/sha}","git_commits_url":"https://api.github.com/repos/LABSN/mnefun/git/commits{/sha}","comments_url":"https://api.github.com/repos/LABSN/mnefun/comments{/number}","issue_comment_url":"https://api.github.com/repos/LABSN/mnefun/issues/comments{/number}","contents_url":"https://api.github.com/repos/LABSN/mnefun/contents/{+path}","compare_url":"https://api.github.com/repos/LABSN/mnefun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LABSN/mnefun/merges","archive_url":"https://api.github.com/repos/LABSN/mnefun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LABSN/mnefun/downloads","issues_url":"https://api.github.com/repos/LABSN/mnefun/issues{/number}","pulls_url":"https://api.github.com/repos/LABSN/mnefun/pulls{/number}","milestones_url":"https://api.github.com/repos/LABSN/mnefun/milestones{/number}","notifications_url":"https://api.github.com/repos/LABSN/mnefun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LABSN/mnefun/labels{/name}","releases_url":"https://api.github.com/repos/LABSN/mnefun/releases{/id}","deployments_url":"https://api.github.com/repos/LABSN/mnefun/deployments","created_at":"2014-03-13T17:20:05Z","updated_at":"2016-01-27T17:02:22Z","pushed_at":"2016-06-23T13:48:55Z","git_url":"git://github.com/LABSN/mnefun.git","ssh_url":"git@github.com:LABSN/mnefun.git","clone_url":"https://github.com/LABSN/mnefun.git","svn_url":"https://github.com/LABSN/mnefun","homepage":null,"size":979,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":7,"forks":7,"open_issues":7,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LABSN/mnefun/pulls/134"},"html":{"href":"https://github.com/LABSN/mnefun/pull/134"},"issue":{"href":"https://api.github.com/repos/LABSN/mnefun/issues/134"},"comments":{"href":"https://api.github.com/repos/LABSN/mnefun/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/LABSN/mnefun/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/LABSN/mnefun/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LABSN/mnefun/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/LABSN/mnefun/statuses/aef8766be42406a1d1f934a44c90ff5e7adb29b4"}}}}
{"actor":{"display_login":"Eric89GXL"}}