Repository navigation
Highlights
- Add support for reading and writing
.wfdbarchive files. - Fix signal and annotation conversion, including
wfdb_to_mat,wfdb_to_wav, andrdedfann. - Improve signal handling and processing, including missing samples, ADC conversion, resampling, and QRS detection.
- Require Python 3.11 or newer and raise the minimum versions of several dependencies.
- Change
ann2rrto use only beat annotations by default and interpret time ranges as positions in the record. Passall_annotations=Trueto include non-beat annotations.
Thank you to @goktugozkanmd for the wfdb_to_mat fixes and tests in #633. Their commit was incorporated into #650 with its original authorship preserved.
For detailed user-facing changes, see the 5.0.0 changelog.
What's Changed
- Remove broken badges from README, and tidy content by @tompollard in #564
- Remove unused import by @briangow in #565
- docs: add cloud storage access documentation by @haoyu-haoyu in #567
- Update
record_namedocumentation to mention cloud URI options by @briangow in #570 - Fix pandas inplace deprecation by @cbrnr in #576
- Update CI: drop EOL jobs, test Python 3.11-3.15, add timeouts by @cbrnr in #578
- Require Python 3.11 and raise minimum dependency versions by @cbrnr in #580
- Bump astral-sh/setup-uv from 10.2.0 to 10.3.2 by @dependabot[bot] in #579
- tests: rename test classes so pytest collects them by @ehanrsha in #577
- Forward the learn argument from xqrs_detect to XQRS.detect by @arpitjain099 in #569
- Build with uv_build instead of hatchling by @cbrnr in #581
- Replace black and pylint with Ruff by @cbrnr in #582
- Manage dev and docs dependencies with uv dependency groups by @cbrnr in #585
- Use pytest only and run PhysioNet checks as separate tests by @cbrnr in #588
- Fix documentation warnings, unify docstring style and use a src layout by @cbrnr in #589
- Skip already-rejected peaks in XQRS backsearch by @TheNetherWatcher in #596
- Fix csv_to_wfdb docstring regarding when and where files are written by @cbrnr in #591
- Document and test what the XQRS backsearch skip relies on by @TheNetherWatcher in #598
- Fix record name and add write_dir in csv2ann by @TheNetherWatcher in #599
- Fix parameter handling in csv_to_wfdb by @TheNetherWatcher in #600
- Use the last RR interval in compute_hr by @TheNetherWatcher in #601
- Check that QRS indices are increasing in compute_hr by @TheNetherWatcher in #603
- Fix resample_sig for signals starting with NaN by @TheNetherWatcher in #604
- Reject aux notes that can't be written in wrann by @TheNetherWatcher in #605
- Bump sphinx from 7.2.6 to 9.0.4 by @dependabot[bot] in #587
- Match each test annotation at most once in compare_annotations by @TheNetherWatcher in #606
- Pack format 16, 24 and 32 samples without per-byte arrays by @TheNetherWatcher in #607
- Keep invalid samples invalid in smooth_frames by @TheNetherWatcher in #608
- Read units containing any non-whitespace characters by @TheNetherWatcher in #609
- Use NumPy for the digital range check in check_sig_cohesion by @TheNetherWatcher in #610
- Fix rr2ann with times and with a symbol column by @TheNetherWatcher in #612
- Include the right edge of the search window in correct_peaks by @TheNetherWatcher in #611
- Fix correct_peaks for peaks near the start of the signal by @TheNetherWatcher in #613
- Allow None for annotations without notes in wrann by @TheNetherWatcher in #614
- Keep missing values missing in resample_sig by @TheNetherWatcher in #615
- Add support for reading and writing .wfdb archive files by @tompollard in #541
- Bump numpydoc from 1.7.0 to 1.11.0 by @dependabot[bot] in #586
- Fix ann2rr intervals split by non-beat annotations by @manyangshen in #584
- Include the right edge in find_local_peaks window by @rmz-oz in #573
- Support multi-segment records in .wfdb archive files by @tompollard in #583
- Read remote FLAC files with fewer requests by @TheNetherWatcher in #621
- Use towncrier for changelog entries by @TheNetherWatcher in #620
- Fix Record.wrsamp() when d_signal is missing by @divya-git03 in #619
- Select ann2rr intervals by time in the record by @TheNetherWatcher in #622
- Plot annotations outside the signal at zero by @TheNetherWatcher in #623
- Fix pandas-3 crash in get_contained_labels: set_index on string .values by @wenh06 in #575
- fix: guard against ZeroDivisionError in Comparitor._calc_stats by @haoyu-haoyu in #566
- Bump astral-sh/setup-uv from 10.3.2 to 10.3.3 in the actions group by @dependabot[bot] in #624
- Fix ADC parameter calculation overflow errors by @briangow in #553
- Add validation to
MultiRecord.wrsampfor segment cohesion by @briangow in #559 - Accept pathlib.Path record names in rdann by @tompollard in #626
- Accept sample numbers stored as floats in wrann by @tompollard in #625
- Use Sphinx's mocking for dependencies in the docs build by @tompollard in #616
- Speed up decoding of annotation files in rdann by @TheNetherWatcher in #627
- Support reading records from fsspec's
memory://by @Ivorforce in #629 - Handle all-NaN channels in calc_adc_params by @RClaudiuM in #628
- Compute to_dataframe timestamps without drift by @tompollard in #631
- Fix wfdb_to_wav failing for every record by @jkkronk in #632
- Reject negative infinity in expanded signals in calc_adc_params by @tompollard in #630
- Return 0 from calc_mean_hr when filters remove all intervals by @TheNetherWatcher in #636
- Accept lists in calc_mean_hr with min_rr or max_rr by @tompollard in #644
- Fix channels and invalid samples in wfdb_to_wav by @tompollard in #645
- Raise errors when rdann reads fs from the header by @tompollard in #647
- Fix rdedfann EDF annotation reading by @tompollard in #648
- Clarify smooth_frames output for single-sample frames by @tompollard in #649
- Fix wfdb_to_mat conversion and prevent sample wrap by @tompollard in #650
- Prepare wfdb 4.4.0 release by @tompollard in #651
- Revise upcoming release to 5.0.0 by @tompollard in #652
New Contributors
- @haoyu-haoyu made their first contribution in #567
- @ehanrsha made their first contribution in #577
- @arpitjain099 made their first contribution in #569
- @TheNetherWatcher made their first contribution in #596
- @manyangshen made their first contribution in #584
- @rmz-oz made their first contribution in #573
- @divya-git03 made their first contribution in #619
- @RClaudiuM made their first contribution in #628
- @jkkronk made their first contribution in #632
Full Changelog: v4.3.1...v5.0.0