-
Notifications
You must be signed in to change notification settings - Fork 126
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
CHB-MIT (Physionet) error - regular EDF not supported anymore #14
Comments
I am getting a similar error. "IOError: the file is not EDF(+) or BDF(+) compliant (it contains format errors)" I thought it related to the number of data records in the EDF spec. This is only for signals and not for annotations. I get the error for any file with annotations. |
Well, maybe for that particular matter, it is because However, this led me to look into this question of digital minimum, and it appears that in EDF +, the digital minimum must indeed be smaller than the digital maximum. All these checks in the C code must, therefore, mean that regular EDF is not supported anymore. I will change the title of the question to reflect this evolution of our understanding of the issue. |
I will change this, thank you for reporting. pyedflib should also be able to read EDF-files. |
Do you know how long it will be for you to fix it? Thanks for your answer. |
Do you need a new version pushed to pypi? Please let me know, if there are more problems with EDF/BDF file format. |
Yes if it's not too much to ask, my workflow for deployment generally has |
Ok, i uploaded it to pypi |
It appears to work for me too! Thank you very much for your help :) |
Hi,
So I was having an issue reading some edf files from the CHB-MIT database. This issue was reported here. I, therefore, followed your recent advice to update the
pyedflib
version.However, I found myself with another error:
So I looked a bit into it and here is what's happening:
in some CHB-MIT edf files (chb12_06 for example), the header contains some blacked out channels (i.e. their label is "-"). These channels have their digital maximum equal to their digital minimum. This is problematic for
pyedflib
who considers that there is a format error (that's what I understand from my poor reading of C code).This was also confirmed when I tried to open them in EDFBrowser:
I wanted to know why you had this check. What I mean is, I don't think it's really that bad if the maximum is equal to the minimum (maybe just issue a warning when they are equal) and I don't see it in the EDF specs.
I also wanted to know if others had had this issue and how they coped with it.
Don't hesitate to ask for additional details and thanks in advance for your help.
EDIT: The channels which caused the issue were not blacked out, an explanation is actually given here :
The text was updated successfully, but these errors were encountered: