Hi, I am completely new to MNE. I tried to load data from an edf file using mne.io.read_raw_edf but it gave me an AssertionError. The code is simple as follows.
The file has an invalid date set. MNE has been fixed to deal with this in version 0.22. Are you absolutely sure you’re using version 0.22? I just tried that version on my Mac, and reading the file works flawlessly. I only get the following message:
RuntimeWarning: Invalid date encountered (2000-00-00 00:00:00).
I got the same RuntimeWarning followed by the AssertionError. I’ve seen the invalid date issue has been fixed on Github, that’s why I am only posing this question.
I am sure that I am using version 0.22 because I set my conda environment using the environment file environment .yml provided on Github. I double-checked it is 0.22 indeed.
I got the following output in addition to the warning and error:
Extracting EDF parameters from C:\Users\XXX\XXX\eeg1.edf...
EDF file detected
Then the program stopped running… The RuntimeWarning should not stop the program, should it? Or conda didn’t create the environment properly. Can MNE runs with system Python rather than conda-managed Python?
Honestly, I’m a little bit clueless as to where your problem might be coming from. The sys_info output looks good, and you shouldn’t see the error you’re seeing.
I tried reinstalling, both eeg79.edf and eeg1.edg did not work for me . This might not be the problem of MNE. Hopefully, I will work that out later. Anyway, thank you for the support with such fast responses, really appreciate it.