{"action":"created","comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/pulls/comments/29252188","id":29252188,"diff_hunk":"@@ -440,18 +440,36 @@ def inst_has(attr):\n class InterpolationMixin(object):\n     \"\"\"Mixin class for Raw, Evoked, Epochs\n     \"\"\"\n-    def interpolate_bads_eeg(self):\n-        \"\"\"Interpolate bad channels\n \n-        Operates in place.\n+    def interpolate_bads(self, reset_bads=True):","path":"mne/channels/channels.py","position":8,"original_position":8,"commit_id":"8055cece35e0c0eec2df7c43e50d04002244aa7e","original_commit_id":"8055cece35e0c0eec2df7c43e50d04002244aa7e","user":{"login":"mainakjas","id":3817535,"avatar_url":"https://avatars.githubusercontent.com/u/3817535?v=3","gravatar_id":"","url":"https://api.github.com/users/mainakjas","html_url":"https://github.com/mainakjas","followers_url":"https://api.github.com/users/mainakjas/followers","following_url":"https://api.github.com/users/mainakjas/following{/other_user}","gists_url":"https://api.github.com/users/mainakjas/gists{/gist_id}","starred_url":"https://api.github.com/users/mainakjas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mainakjas/subscriptions","organizations_url":"https://api.github.com/users/mainakjas/orgs","repos_url":"https://api.github.com/users/mainakjas/repos","events_url":"https://api.github.com/users/mainakjas/events{/privacy}","received_events_url":"https://api.github.com/users/mainakjas/received_events","type":"User","site_admin":false},"body":"okay, I got the whole context now :) I'll go with returning `self` and no `copy` param. Please shout out if that's not what you want.","created_at":"2015-04-28T15:08:43Z","updated_at":"2015-04-28T15:08:43Z","html_url":"https://github.com/mne-tools/mne-python/pull/2011#discussion_r29252188","pull_request_url":"https://api.github.com/repos/mne-tools/mne-python/pulls/2011","_links":{"self":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/comments/29252188"},"html":{"href":"https://github.com/mne-tools/mne-python/pull/2011#discussion_r29252188"},"pull_request":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/2011"}}},"pull_request":{"url":"https://api.github.com/repos/mne-tools/mne-python/pulls/2011","id":33960216,"html_url":"https://github.com/mne-tools/mne-python/pull/2011","diff_url":"https://github.com/mne-tools/mne-python/pull/2011.diff","patch_url":"https://github.com/mne-tools/mne-python/pull/2011.patch","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2011","number":2011,"state":"open","locked":false,"title":"MRG: interpolate bad meg channels","user":{"login":"mainakjas","id":3817535,"avatar_url":"https://avatars.githubusercontent.com/u/3817535?v=3","gravatar_id":"","url":"https://api.github.com/users/mainakjas","html_url":"https://github.com/mainakjas","followers_url":"https://api.github.com/users/mainakjas/followers","following_url":"https://api.github.com/users/mainakjas/following{/other_user}","gists_url":"https://api.github.com/users/mainakjas/gists{/gist_id}","starred_url":"https://api.github.com/users/mainakjas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mainakjas/subscriptions","organizations_url":"https://api.github.com/users/mainakjas/orgs","repos_url":"https://api.github.com/users/mainakjas/repos","events_url":"https://api.github.com/users/mainakjas/events{/privacy}","received_events_url":"https://api.github.com/users/mainakjas/received_events","type":"User","site_admin":false},"body":"This works fine but I need to make it DRY and add documentation","created_at":"2015-04-23T14:24:41Z","updated_at":"2015-04-28T15:08:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c70bba9c9e0d219dd1ce4ab15f6768ba2f70d385","assignee":null,"milestone":{"url":"https://api.github.com/repos/mne-tools/mne-python/milestones/5","html_url":"https://github.com/mne-tools/mne-python/milestones/0.9","labels_url":"https://api.github.com/repos/mne-tools/mne-python/milestones/5/labels","id":1011721,"number":5,"title":"0.9","description":null,"creator":{"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},"open_issues":9,"closed_issues":108,"state":"open","created_at":"2015-03-09T03:10:39Z","updated_at":"2015-04-28T04:45:43Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/mne-tools/mne-python/pulls/2011/commits","review_comments_url":"https://api.github.com/repos/mne-tools/mne-python/pulls/2011/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/2011/comments","statuses_url":"https://api.github.com/repos/mne-tools/mne-python/statuses/8055cece35e0c0eec2df7c43e50d04002244aa7e","head":{"label":"mainakjas:interpolate_bads_meg","ref":"interpolate_bads_meg","sha":"8055cece35e0c0eec2df7c43e50d04002244aa7e","user":{"login":"mainakjas","id":3817535,"avatar_url":"https://avatars.githubusercontent.com/u/3817535?v=3","gravatar_id":"","url":"https://api.github.com/users/mainakjas","html_url":"https://github.com/mainakjas","followers_url":"https://api.github.com/users/mainakjas/followers","following_url":"https://api.github.com/users/mainakjas/following{/other_user}","gists_url":"https://api.github.com/users/mainakjas/gists{/gist_id}","starred_url":"https://api.github.com/users/mainakjas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mainakjas/subscriptions","organizations_url":"https://api.github.com/users/mainakjas/orgs","repos_url":"https://api.github.com/users/mainakjas/repos","events_url":"https://api.github.com/users/mainakjas/events{/privacy}","received_events_url":"https://api.github.com/users/mainakjas/received_events","type":"User","site_admin":false},"repo":{"id":8892606,"name":"mne-python","full_name":"mainakjas/mne-python","owner":{"login":"mainakjas","id":3817535,"avatar_url":"https://avatars.githubusercontent.com/u/3817535?v=3","gravatar_id":"","url":"https://api.github.com/users/mainakjas","html_url":"https://github.com/mainakjas","followers_url":"https://api.github.com/users/mainakjas/followers","following_url":"https://api.github.com/users/mainakjas/following{/other_user}","gists_url":"https://api.github.com/users/mainakjas/gists{/gist_id}","starred_url":"https://api.github.com/users/mainakjas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mainakjas/subscriptions","organizations_url":"https://api.github.com/users/mainakjas/orgs","repos_url":"https://api.github.com/users/mainakjas/repos","events_url":"https://api.github.com/users/mainakjas/events{/privacy}","received_events_url":"https://api.github.com/users/mainakjas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mainakjas/mne-python","description":"MNE : Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python","fork":true,"url":"https://api.github.com/repos/mainakjas/mne-python","forks_url":"https://api.github.com/repos/mainakjas/mne-python/forks","keys_url":"https://api.github.com/repos/mainakjas/mne-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mainakjas/mne-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mainakjas/mne-python/teams","hooks_url":"https://api.github.com/repos/mainakjas/mne-python/hooks","issue_events_url":"https://api.github.com/repos/mainakjas/mne-python/issues/events{/number}","events_url":"https://api.github.com/repos/mainakjas/mne-python/events","assignees_url":"https://api.github.com/repos/mainakjas/mne-python/assignees{/user}","branches_url":"https://api.github.com/repos/mainakjas/mne-python/branches{/branch}","tags_url":"https://api.github.com/repos/mainakjas/mne-python/tags","blobs_url":"https://api.github.com/repos/mainakjas/mne-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mainakjas/mne-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mainakjas/mne-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/mainakjas/mne-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mainakjas/mne-python/statuses/{sha}","languages_url":"https://api.github.com/repos/mainakjas/mne-python/languages","stargazers_url":"https://api.github.com/repos/mainakjas/mne-python/stargazers","contributors_url":"https://api.github.com/repos/mainakjas/mne-python/contributors","subscribers_url":"https://api.github.com/repos/mainakjas/mne-python/subscribers","subscription_url":"https://api.github.com/repos/mainakjas/mne-python/subscription","commits_url":"https://api.github.com/repos/mainakjas/mne-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/mainakjas/mne-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/mainakjas/mne-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/mainakjas/mne-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/mainakjas/mne-python/contents/{+path}","compare_url":"https://api.github.com/repos/mainakjas/mne-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mainakjas/mne-python/merges","archive_url":"https://api.github.com/repos/mainakjas/mne-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mainakjas/mne-python/downloads","issues_url":"https://api.github.com/repos/mainakjas/mne-python/issues{/number}","pulls_url":"https://api.github.com/repos/mainakjas/mne-python/pulls{/number}","milestones_url":"https://api.github.com/repos/mainakjas/mne-python/milestones{/number}","notifications_url":"https://api.github.com/repos/mainakjas/mne-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mainakjas/mne-python/labels{/name}","releases_url":"https://api.github.com/repos/mainakjas/mne-python/releases{/id}","created_at":"2013-03-20T00:17:33Z","updated_at":"2014-12-06T15:03:01Z","pushed_at":"2015-04-28T12:49:17Z","git_url":"git://github.com/mainakjas/mne-python.git","ssh_url":"git@github.com:mainakjas/mne-python.git","clone_url":"https://github.com/mainakjas/mne-python.git","svn_url":"https://github.com/mainakjas/mne-python","homepage":"http://martinos.org/mne/","size":78534,"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":"mne-tools:master","ref":"master","sha":"73584508f292a55b15ab4429be9566119b8646d7","user":{"login":"mne-tools","id":583875,"avatar_url":"https://avatars.githubusercontent.com/u/583875?v=3","gravatar_id":"","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?v=3","gravatar_id":"","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":"2015-04-28T02:32:35Z","pushed_at":"2015-04-28T12:49:18Z","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":168899,"stargazers_count":127,"watchers_count":127,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":112,"mirror_url":null,"open_issues_count":125,"forks":112,"open_issues":125,"watchers":127,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/2011"},"html":{"href":"https://github.com/mne-tools/mne-python/pull/2011"},"issue":{"href":"https://api.github.com/repos/mne-tools/mne-python/issues/2011"},"comments":{"href":"https://api.github.com/repos/mne-tools/mne-python/issues/2011/comments"},"review_comments":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/2011/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/2011/commits"},"statuses":{"href":"https://api.github.com/repos/mne-tools/mne-python/statuses/8055cece35e0c0eec2df7c43e50d04002244aa7e"}}}}