New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mne.io.read_raw_edf cannot load data correctly with argument include
or exclude
#11486
Comments
It should be noted that this file has signals with different sampling frequencies. When fixing |
Hi, I would like to have a quick follow-up: is fixing this bug already in plan? |
currently only "exclude" param is supported. to get some channels you need
to exclude all the others
Message ID: ***@***.***>
… |
Thanks for replying! I tried the lastest master, the result is still incorrect. Codes to reproduce the bug:
Result |
Description of the problem
I just tried to load EEG, EMG and bio channels separately, unfortunately I did not suceed to load the data correctly.
Steps to reproduce
Link to data
https://drive.google.com/file/d/1IMP_HK0JvzNOzd7worc3zDTBy7f3E9Zj/view?usp=sharing
Expected results
eeg_raw
should have all 21 eeg channels.bio_raw
should have the 3 channels 'Resp','BVP-0','BVP-1'emg_raw
should have the 4 emg channels 'EMG-0','EMG-1','EMG-2','EMG-3'Actual results
The result is that,
eeg_raw
only excluded one bio channel ‘Resp’.emg_raw
had no channel.bio_raw
had only 1 channel ‘Resp’…Then I tried upgraded mne to 1.3, the result is that,
eeg_raw
only excluded one bio channel ‘Resp’.The following 2 lines did not work and I got TypeError:
read_raw_edf() got an unexpected keyword argument 'include'
. I looked into the function and found thatinclude
was not implemented in the functionmne.io.read_raw_edf
. According to the documentation it should be there…Additional information
The text was updated successfully, but these errors were encountered: