Closed Ari-PP closed 1 year ago
This is probably due to a bug that was introduced recently
Does installing from this branch fix the issue for you? https://github.com/holgern/pyedflib/tree/issue148_samplerate2
I can't test since issue148_samplerate2 did not install even if requirements-test.txt, Cython and compilers were installed. There is some problem with setuptools call when running "python setup.py build":
Traceback (most recent call last):
File "setup.py", line 268, in
That is strange :-/
pinging @holgern , maybe he can merge the issue soon and make a release?
I will take a look and merge the open PR
Is there a working fix for this issue? It is rather important to be able to get the sample rate when loading data from an EDF file.
There is a fix in PR #159, if you install from that branch it should be fine.
@holgern would you have time to have a look and merge PR? It quite a major bug that should be addressed
Hi, just adding my voice to this issue, would love to see it fixed.
Hi, I also would love to see this fixed! Any updates so fare?
nope, not really. If anyone wants to review the PR and give it a go I'd be glad :)
nope, not really. If anyone wants to review the PR and give it a go I'd be glad :)
I can review it
Merged and released 🥳 #159
Sample code:
f = pyedflib.EdfReader( filename ) labels = f.getSignalLabels() SampleRate = f.getSignalHeader(labels.index("Audio Volume"))['sample_rate']
SampleRate is ok if "duration of a data record" in EDF header is 1. SampleRate is 10x real value if "duration of a data record" in EDF header is 10. SampleRate should be divided by "duration of a data record".
This seems to be broken in 0.1.23 and been broken ever since.