Closed cbrnr closed 6 years ago
So this is almost certainly related to the same commit/PR as #4710, but is now a new breakage mode?
It looks like these are documented clearly enough that we should be able to fix it. I can try to find time to fix it in the next week or so unless someone else beats me to it. We'll need to fix and backport to 0.15.
So this is almost certainly related to the same commit/PR as #4710, but is now a new breakage mode?
This error was introduced by 9ac6547. I don't understand why it occurs yet, because explicitly setting stim_channel='auto'
should be the same as using the default - but it's not.
No need to backport, this commit was after 0.15.
It is different in the reader read_raw_edf
:
https://github.com/mne-tools/mne-python/blob/master/mne/io/edf/edf.py#L1154
Than in the class RawEDF
:
https://github.com/mne-tools/mne-python/blob/master/mne/io/edf/edf.py#L153
Can you make a quick PR to fix it? If not I can get to it later this week.
Alright, this should be fixed in #4751
The last commit that affected
mne/io/edf/edf.py
(https://github.com/mne-tools/mne-python/commit/9ac6547284bbd73b4c18d7d7031042585388005c#diff-825d45683d0be02fad23614151867e02) broke it. When I load a BDF file like this, I get an error:However, if I set
stim_channel='auto'
explicitly, it works. This is strange since this is also the default value.