{"action":"created","comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/pulls/comments/27418828","id":27418828,"diff_hunk":"@@ -4,10 +4,36 @@\n \n import numpy as np\n from scipy import signal, interpolate\n+from ..evoked import Evoked\n+from ..epochs import Epochs\n+from ..io import Raw\n+from ..utils import deprecated\n \n from .. import pick_types\n+from ..io.pick import pick_channels\n \n \n+def _get_window(start, end):\n+    window = 1 - np.r_[signal.hann(4)[:2],\n+                       np.ones(np.abs(end - start) - 4),\n+                       signal.hann(4)[-2:]].T\n+    return window\n+\n+\n+def _fix_artifact(orig, data, window, picks, first_samp, last_samp, mode):","path":"mne/preprocessing/stim.py","position":20,"original_position":20,"commit_id":"88e355e2ecba09ddb56062fb009fa3f502ae3430","original_commit_id":"88e355e2ecba09ddb56062fb009fa3f502ae3430","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":"same here","created_at":"2015-03-30T18:36:53Z","updated_at":"2015-03-30T18:36:53Z","html_url":"https://github.com/mne-tools/mne-python/pull/1886#discussion_r27418828","pull_request_url":"https://api.github.com/repos/mne-tools/mne-python/pulls/1886","_links":{"self":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/comments/27418828"},"html":{"href":"https://github.com/mne-tools/mne-python/pull/1886#discussion_r27418828"},"pull_request":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/1886"}}},"pull_request":{"url":"https://api.github.com/repos/mne-tools/mne-python/pulls/1886","id":31685003,"html_url":"https://github.com/mne-tools/mne-python/pull/1886","diff_url":"https://github.com/mne-tools/mne-python/pull/1886.diff","patch_url":"https://github.com/mne-tools/mne-python/pull/1886.patch","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/1886","number":1886,"state":"open","locked":false,"title":"eliminate stim artifact","user":{"login":"dlsrnsi","id":7012023,"avatar_url":"https://avatars.githubusercontent.com/u/7012023?v=3","gravatar_id":"","url":"https://api.github.com/users/dlsrnsi","html_url":"https://github.com/dlsrnsi","followers_url":"https://api.github.com/users/dlsrnsi/followers","following_url":"https://api.github.com/users/dlsrnsi/following{/other_user}","gists_url":"https://api.github.com/users/dlsrnsi/gists{/gist_id}","starred_url":"https://api.github.com/users/dlsrnsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlsrnsi/subscriptions","organizations_url":"https://api.github.com/users/dlsrnsi/orgs","repos_url":"https://api.github.com/users/dlsrnsi/repos","events_url":"https://api.github.com/users/dlsrnsi/events{/privacy}","received_events_url":"https://api.github.com/users/dlsrnsi/received_events","type":"User","site_admin":false},"body":"add eliminate_stim_artifact_evoked(evoked, mode='linear') to preprocessing.stim.py\r\n\r\n","created_at":"2015-03-22T08:46:32Z","updated_at":"2015-03-30T18:36:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63d4c6d7841fbca39dfa7d1e52c277bccd682680","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mne-tools/mne-python/pulls/1886/commits","review_comments_url":"https://api.github.com/repos/mne-tools/mne-python/pulls/1886/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/1886/comments","statuses_url":"https://api.github.com/repos/mne-tools/mne-python/statuses/88e355e2ecba09ddb56062fb009fa3f502ae3430","head":{"label":"dlsrnsi:dlsrnsi","ref":"dlsrnsi","sha":"88e355e2ecba09ddb56062fb009fa3f502ae3430","user":{"login":"dlsrnsi","id":7012023,"avatar_url":"https://avatars.githubusercontent.com/u/7012023?v=3","gravatar_id":"","url":"https://api.github.com/users/dlsrnsi","html_url":"https://github.com/dlsrnsi","followers_url":"https://api.github.com/users/dlsrnsi/followers","following_url":"https://api.github.com/users/dlsrnsi/following{/other_user}","gists_url":"https://api.github.com/users/dlsrnsi/gists{/gist_id}","starred_url":"https://api.github.com/users/dlsrnsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlsrnsi/subscriptions","organizations_url":"https://api.github.com/users/dlsrnsi/orgs","repos_url":"https://api.github.com/users/dlsrnsi/repos","events_url":"https://api.github.com/users/dlsrnsi/events{/privacy}","received_events_url":"https://api.github.com/users/dlsrnsi/received_events","type":"User","site_admin":false},"repo":{"id":32667933,"name":"mne-python","full_name":"dlsrnsi/mne-python","owner":{"login":"dlsrnsi","id":7012023,"avatar_url":"https://avatars.githubusercontent.com/u/7012023?v=3","gravatar_id":"","url":"https://api.github.com/users/dlsrnsi","html_url":"https://github.com/dlsrnsi","followers_url":"https://api.github.com/users/dlsrnsi/followers","following_url":"https://api.github.com/users/dlsrnsi/following{/other_user}","gists_url":"https://api.github.com/users/dlsrnsi/gists{/gist_id}","starred_url":"https://api.github.com/users/dlsrnsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlsrnsi/subscriptions","organizations_url":"https://api.github.com/users/dlsrnsi/orgs","repos_url":"https://api.github.com/users/dlsrnsi/repos","events_url":"https://api.github.com/users/dlsrnsi/events{/privacy}","received_events_url":"https://api.github.com/users/dlsrnsi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dlsrnsi/mne-python","description":"MNE : Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python","fork":true,"url":"https://api.github.com/repos/dlsrnsi/mne-python","forks_url":"https://api.github.com/repos/dlsrnsi/mne-python/forks","keys_url":"https://api.github.com/repos/dlsrnsi/mne-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dlsrnsi/mne-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dlsrnsi/mne-python/teams","hooks_url":"https://api.github.com/repos/dlsrnsi/mne-python/hooks","issue_events_url":"https://api.github.com/repos/dlsrnsi/mne-python/issues/events{/number}","events_url":"https://api.github.com/repos/dlsrnsi/mne-python/events","assignees_url":"https://api.github.com/repos/dlsrnsi/mne-python/assignees{/user}","branches_url":"https://api.github.com/repos/dlsrnsi/mne-python/branches{/branch}","tags_url":"https://api.github.com/repos/dlsrnsi/mne-python/tags","blobs_url":"https://api.github.com/repos/dlsrnsi/mne-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dlsrnsi/mne-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dlsrnsi/mne-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/dlsrnsi/mne-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dlsrnsi/mne-python/statuses/{sha}","languages_url":"https://api.github.com/repos/dlsrnsi/mne-python/languages","stargazers_url":"https://api.github.com/repos/dlsrnsi/mne-python/stargazers","contributors_url":"https://api.github.com/repos/dlsrnsi/mne-python/contributors","subscribers_url":"https://api.github.com/repos/dlsrnsi/mne-python/subscribers","subscription_url":"https://api.github.com/repos/dlsrnsi/mne-python/subscription","commits_url":"https://api.github.com/repos/dlsrnsi/mne-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/dlsrnsi/mne-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/dlsrnsi/mne-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/dlsrnsi/mne-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/dlsrnsi/mne-python/contents/{+path}","compare_url":"https://api.github.com/repos/dlsrnsi/mne-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dlsrnsi/mne-python/merges","archive_url":"https://api.github.com/repos/dlsrnsi/mne-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dlsrnsi/mne-python/downloads","issues_url":"https://api.github.com/repos/dlsrnsi/mne-python/issues{/number}","pulls_url":"https://api.github.com/repos/dlsrnsi/mne-python/pulls{/number}","milestones_url":"https://api.github.com/repos/dlsrnsi/mne-python/milestones{/number}","notifications_url":"https://api.github.com/repos/dlsrnsi/mne-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dlsrnsi/mne-python/labels{/name}","releases_url":"https://api.github.com/repos/dlsrnsi/mne-python/releases{/id}","created_at":"2015-03-22T08:29:29Z","updated_at":"2015-03-26T11:49:37Z","pushed_at":"2015-03-30T15:21:43Z","git_url":"git://github.com/dlsrnsi/mne-python.git","ssh_url":"git@github.com:dlsrnsi/mne-python.git","clone_url":"https://github.com/dlsrnsi/mne-python.git","svn_url":"https://github.com/dlsrnsi/mne-python","homepage":"http://martinos.org/mne/","size":74307,"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":"4ae85b5714b546580a56c7ff8c5bc002f2c4ba17","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-03-30T14:55:41Z","pushed_at":"2015-03-30T17:56:16Z","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":163551,"stargazers_count":119,"watchers_count":119,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":108,"mirror_url":null,"open_issues_count":157,"forks":108,"open_issues":157,"watchers":119,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/1886"},"html":{"href":"https://github.com/mne-tools/mne-python/pull/1886"},"issue":{"href":"https://api.github.com/repos/mne-tools/mne-python/issues/1886"},"comments":{"href":"https://api.github.com/repos/mne-tools/mne-python/issues/1886/comments"},"review_comments":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/1886/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/1886/commits"},"statuses":{"href":"https://api.github.com/repos/mne-tools/mne-python/statuses/88e355e2ecba09ddb56062fb009fa3f502ae3430"}}}}