wfdb-python icon indicating copy to clipboard operation
wfdb-python copied to clipboard

Native Python WFDB package

Results 110 wfdb-python issues
Sort by recently updated
recently updated
newest added

Tests often fail with no apparent cause. For example, in the following case, tests were passing on the pull request but they failed on merge to main: https://github.com/MIT-LCP/wfdb-python/actions/runs/9784161262/attempts/1 After re-running...

The variable j was not properly scoped within the for-loop in the sm method, leading to an UnboundLocalError when j was accessed outside the loop.

csv_to_wfdb currently strips the path from the input .csv, then writes the output to .dat and .hea Request is for a) full path to be preserved for the output file...

Some versions of libFLAC report an error when we try to seek to particular sample numbers: * 1.3.3: working * 1.3.4: working * Broken by commit cbb039d2d629885a943a620f9828fdccec9cf28c * 1.4.0: broken...

All tests pass and `demo.ipynb` works without any errors or warnings using NumPy >= 2.

This PR adds the capability for writing signals with unique samples per frame (`samps_per_frame`) to `wfdb.io.wrsamp`. This is typically the function that is used to write WFDB files. This was...

As discussed in https://github.com/MIT-LCP/wfdb-python/issues/493, numpy v2.0 introduced changes to type promotion rules: https://numpy.org/devdocs/numpy_2_0_migration_guide.html#changes-to-numpy-data-type-promotion Running pytest with `numpy==2.0.2` and `NPY_PROMOTION_STATE=weak_and_warn` raises the following warning for wfdb/io/convert/edf.py: ``` tests/io/test_convert.py::TestEdfToWfdb::test_edf_uniform /Users/tompollard/projects/wfdb-python/wfdb/io/convert/edf.py:409: UserWarning: result...

As noted in #484 , `rdsamp` and `wrsamp` are not isomorphic. It is reasonable to expect that what gets read into memory should be sufficient and by default re-create the...

I've recently needed to read files from buffers rather than files (streamed from file selection pickers). I've opened up a Pull Request with a quick fix allowing a buffer override:...

In 63c987f33098aa0ccded214115d7922a7d0b9325 updates to `HeaderMixin` were made to properly format the header date and time fields. This fix did not make it into `MultiHeaderMixin` (for multi-segment records). Therefore, writing a...