pyedflib
pyedflib copied to clipboard
ERROR reading edf file: the file is not EDF(+) or BDF(+) compliant (Digital Maximum)
Hi,
I am trying to read .edf files, and get this error for some of them....it might be older files. I have upgraded to the last version of pyedflib (0.1.10).
Could you help me? What information do you need from me?
Best Hanneke
Hello, can you give me an edf-file that has this kind of error?
Best regards, Holger
Hi Holger,
It really seems to depend on my datasets, sorry, I tried to open them in Matlab as well and they give the same warning. I have to ask whether I can give the data, as they are clinical datasets. If you are still interested I will see what I can do.
Best regards,
Hanneke
Thank you, I'm still interested.
Has there been any progress on this? I am facing the similar issue. "OSError: the file is not EDF(+) or BDF(+) compliant (startdate)"
you need convert EDF+D to EDF+C.
How do you do that?
Hello, can you give me an edf-file that has this kind of error?
Best regards, Holger
Can I do that privately? It is a file that might contain AVG sensitive data, which I am not sure of since I cannot open it...
If I have a look at the file with edfbrowser (Teunis van Beelen) than it gives this error. While Brain Vision Analyser doesn't have any problems with it...
Sorry for the long silence, I have been working with other data in the mean time
(meanwhile I've taken up maintenance of pyedflib)
The digital maximum (ADC values) of EDF is 32767 (16 bit recording), however it should be possible with BDF, which extends it to 8388607 (24 bit recording). Which device/software created this file?
Have you tried the Header-Repair-Tool by EDFBrowser?
(EDFBrowser -> Tools -> Header Editor -> Open your file, and save it again)
You can send the file to [email protected] and I'll have a look. Just drop me a dropbox or wetransfer link :)
edit:
I received the file and indeed the header for channel 37 was incorrect. Reseting the value with a text editor solved the issue (hopefully).