{"action":"created","issue":{"url":"https://api.github.com/repos/autoreject/autoreject/issues/73","repository_url":"https://api.github.com/repos/autoreject/autoreject","labels_url":"https://api.github.com/repos/autoreject/autoreject/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/autoreject/autoreject/issues/73/comments","events_url":"https://api.github.com/repos/autoreject/autoreject/issues/73/events","html_url":"https://github.com/autoreject/autoreject/issues/73","id":254475356,"number":73,"title":"dropping bad epochs with multiple channel types","user":{"login":"jdue","id":21368356,"avatar_url":"https://avatars1.githubusercontent.com/u/21368356?v=4","gravatar_id":"","url":"https://api.github.com/users/jdue","html_url":"https://github.com/jdue","followers_url":"https://api.github.com/users/jdue/followers","following_url":"https://api.github.com/users/jdue/following{/other_user}","gists_url":"https://api.github.com/users/jdue/gists{/gist_id}","starred_url":"https://api.github.com/users/jdue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdue/subscriptions","organizations_url":"https://api.github.com/users/jdue/orgs","repos_url":"https://api.github.com/users/jdue/repos","events_url":"https://api.github.com/users/jdue/events{/privacy}","received_events_url":"https://api.github.com/users/jdue/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-31T21:36:49Z","updated_at":"2017-09-04T09:24:53Z","closed_at":"2017-09-01T20:57:30Z","author_association":"NONE","body":"I ran autoreject on a dataset containing MEG and EEG channels, however, it failed to transform the epochs due to an `IndexError` at line 636 in `autoreject.py` the reason being that `bad_epochs_idx` was of type float (causing the drop method to fail). Apparently this happens because `np.union1d` returns an array of floats when one of the inputs are an empty list. Possible fix would be changing line 612 to \r\n\r\n    bad_epochs_idx = np.union1d(bad_epochs_idx, bad_epochs_idx_).astype(np.int)\r\n\r\n(or setting `dtype` anywhere after this)."},"comment":{"url":"https://api.github.com/repos/autoreject/autoreject/issues/comments/326913114","html_url":"https://github.com/autoreject/autoreject/issues/73#issuecomment-326913114","issue_url":"https://api.github.com/repos/autoreject/autoreject/issues/73","id":326913114,"user":{"login":"jdue","id":21368356,"avatar_url":"https://avatars1.githubusercontent.com/u/21368356?v=4","gravatar_id":"","url":"https://api.github.com/users/jdue","html_url":"https://github.com/jdue","followers_url":"https://api.github.com/users/jdue/followers","following_url":"https://api.github.com/users/jdue/following{/other_user}","gists_url":"https://api.github.com/users/jdue/gists{/gist_id}","starred_url":"https://api.github.com/users/jdue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdue/subscriptions","organizations_url":"https://api.github.com/users/jdue/orgs","repos_url":"https://api.github.com/users/jdue/repos","events_url":"https://api.github.com/users/jdue/events{/privacy}","received_events_url":"https://api.github.com/users/jdue/received_events","type":"User","site_admin":false},"created_at":"2017-09-04T09:24:53Z","updated_at":"2017-09-04T09:24:53Z","author_association":"NONE","body":"It did, thanks :)"}}
{"actor":{"display_login":"jdue"}}