Closed const7 closed 2 years ago
According to the EDF+ Specifications, the min/max need to be different. The underlying C library edflib
will raise an error if this is the case, therefore we catch the error already in the Python code.
In this case you can simply change the physical max to e.g. 1 in the signal header before you write the samples to avoid this error. This will not change the signal itself.
It worked. Thank you! Would you consider putting this trick into the code? I think a lot of people may encounter this situation.
Great to hear!
Although I understand the convenience behind it, I would rather not do that, as it might have unforseen side-effects in some cases.
I got an
AssertionError
when converting my EGI.mff
file to.edf
.The channel
E129
here is a reference channel so the value is always 0, which triggered the AssertionError. Are there any suggestions about how should I deal with it? Thank you!I have found one merge #89 related to this error but I don't know why a channel with all zero values will be a problem.