pyedflib icon indicating copy to clipboard operation
pyedflib copied to clipboard

ERROR reading edf file: the file is not EDF(+) or BDF(+) compliant (Digital Maximum)

Open hannekevandijk opened this issue 6 years ago • 9 comments

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

hannekevandijk avatar Jan 11 '18 09:01 hannekevandijk

Hello, can you give me an edf-file that has this kind of error?

Best regards, Holger

holgern avatar Jan 22 '18 12:01 holgern

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

hannekevandijk avatar Jan 22 '18 15:01 hannekevandijk

Thank you, I'm still interested.

holgern avatar Jan 23 '18 13:01 holgern

Has there been any progress on this? I am facing the similar issue. "OSError: the file is not EDF(+) or BDF(+) compliant (startdate)"

Shuvrajit9904 avatar Aug 17 '18 21:08 Shuvrajit9904

you need convert EDF+D to EDF+C.

danzhewuju avatar Mar 19 '19 02:03 danzhewuju

How do you do that?

hannekevandijk avatar Jun 16 '20 14:06 hannekevandijk

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...

hannekevandijk avatar Jun 16 '20 14:06 hannekevandijk

afbeelding

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

hannekevandijk avatar Jun 16 '20 14:06 hannekevandijk

(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).

skjerns avatar Jun 16 '20 14:06 skjerns