From 971dc6d8f884a8fdab5dc36f1b19c3404ac5d36b Mon Sep 17 00:00:00 2001 From: Tom Pollard Date: Sat, 28 Nov 2026 12:06:23 -0500 Subject: [PATCH] Prepare WFDB-Python 5.6.0 release --- changelog.d/csv2ann-round-onsets.rst | 2 -- changelog.d/nstdb-calibration-docs.rst | 4 ---- changelog.d/record-equality.rst | 3 --- docs/changes.rst | 25 +++++++++++++++++++++++++ pyproject.toml | 2 +- 5 files changed, 26 insertions(+), 10 deletions(-) delete mode 100644 changelog.d/csv2ann-round-onsets.rst delete mode 100644 changelog.d/nstdb-calibration-docs.rst delete mode 100644 changelog.d/record-equality.rst diff --git a/changelog.d/csv2ann-round-onsets.rst b/changelog.d/csv2ann-round-onsets.rst deleted file mode 100644 index 25c00387..00000000 --- a/changelog.d/csv2ann-round-onsets.rst +++ /dev/null @@ -1,2 +0,0 @@ -**Round csv2ann time onsets to the nearest sample** - ``csv2ann`` with ``time_onset=True`` now rounds onset times to the nearest sample instead of truncating them, so (for example) 0.29 seconds at 100 Hz gives sample 29 instead of 28. diff --git a/changelog.d/nstdb-calibration-docs.rst b/changelog.d/nstdb-calibration-docs.rst deleted file mode 100644 index 46725cb1..00000000 --- a/changelog.d/nstdb-calibration-docs.rst +++ /dev/null @@ -1,4 +0,0 @@ -**Clarify baseline and ADC zero in record headers** - Document how physical samples are calibrated when ``baseline`` and - ``adc_zero`` differ, using the MIT-BIH Noise Stress Test Database as an - example. diff --git a/changelog.d/record-equality.rst b/changelog.d/record-equality.rst deleted file mode 100644 index 3c698dc6..00000000 --- a/changelog.d/record-equality.rst +++ /dev/null @@ -1,3 +0,0 @@ -**Return false for records with different signal values** - Comparing ``Record`` objects with unequal uniform or expanded signal arrays - now returns ``False`` instead of raising an exception. diff --git a/docs/changes.rst b/docs/changes.rst index a174d1c8..d339e9c0 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -7,6 +7,31 @@ This page lists recent changes in the `wfdb` package (since version 4.0.0) that .. towncrier release notes start +Version 5.6.0 (Nov 2026) +------------------------ + +This release prepares the record reader for a clearer API while preserving +existing public calls. It also includes two fixes and a calibration note. + +**Clarify baseline and ADC zero in record headers** + Document how physical samples are calibrated when ``baseline`` and + ``adc_zero`` differ, using the MIT-BIH Noise Stress Test Database as an + example. + +**Return false for records with different signal values** + Comparing ``Record`` objects with unequal uniform or expanded signal arrays + now returns ``False`` instead of raising an exception. + +**Prepare record I/O for a clearer API** + Record reads now keep source headers, selected ranges, and loaded signal + modes in separate internal structures. The existing public readers and + mutable record attributes retain their behavior. + +**Round csv2ann time onsets to the nearest sample** + ``csv2ann`` with ``time_onset=True`` now rounds onset times to the nearest + sample instead of truncating them, so 0.29 seconds at 100 Hz gives sample 29 + instead of 28. + Version 5.5.1 (Nov 2026) ------------------------ diff --git a/pyproject.toml b/pyproject.toml index d23db584..9c597ff5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "uv_build" [project] name = "wfdb" -version = "5.5.1" +version = "5.6.0" description = "Read, write, plot, and process physiologic waveforms and annotations." authors = [{name = "The Laboratory for Computational Physiology", email = "contact@physionet.org"}] license = "MIT"