Skip to content

wfdb 6.0.0

Choose a tag to compare

@tompollard tompollard released this 04 Dec 21:39
4b48347

WFDB-Python 6.0.0 makes read_record the single modern reader for a combined record. It returns RecordData, with editable signal arrays, fixed metadata, and source provenance.

Migrating from 5.x

  • read_signals(path, layout=...) → read_record(path, layout=...).
  • Code that relied on read_record returning a mutable Record or MultiRecord should use rdrecord instead. The legacy API remains available.
  • Use read_segments(path, layout=...) to retain segment boundaries. read_record always combines segments; its combine_segments argument has been removed.
  • The public SignalRead aliases are removed. Use RecordData. The historical class path remains for loading old pickles.
  • Read values from data.signals.values and metadata from data.metadata. See the 6.0 migration guide for field mappings and examples.

RecordData.plot(annotation=..., ...) plots a modern read directly. The existing plot_wfdb function also accepts RecordData; masked digital samples appear as gaps. The README has updated 6.0 examples.

Header reads now decode UTF-8 with a Latin-1 fallback and preserve comment spaces and # characters. Text from some existing headers may therefore differ from earlier releases. The header-text change is described in the changelog.

Install with pip install wfdb==6.0.0.