You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MultiRecord has a sig_name attribute (which is copied from the first segment.) Should it also have units and samps_per_frame attributes, for convenience?
(An application calls rdheader in order to obtain record metadata, without reading any signal data. If the same attributes are available both for Record and MultiRecord then applications don't need to handle the two cases differently.)
Closing, since header-only callers can now get this through one function for both record forms. wfdb.read_channel_header(path) (#827) returns the channel-defining header for single- and multi-segment records without loading samples: the layout header for variable layout, or the first non-gap segment for fixed layout. Its signals give each channel's name, units, and samples per frame. MultiRecord.segment_views (#828) describes the segments themselves. We kept MultiRecord free of more mutable per-channel lists, in line with #744.
Activity
Add samples_per_frame alias to Record (#809)
Add a common header-only channel metadata reader (#827)
tompollard commentedon Dec 1, 2026
Closing, since header-only callers can now get this through one function for both record forms.
wfdb.read_channel_header(path)(#827) returns the channel-defining header for single- and multi-segment records without loading samples: the layout header for variable layout, or the first non-gap segment for fixed layout. Itssignalsgive each channel's name, units, and samples per frame.MultiRecord.segment_views(#828) describes the segments themselves. We keptMultiRecordfree of more mutable per-channel lists, in line with #744.