Skip to content

Signal metadata in MultiRecord #441

Done

Description

@bemoody

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.)

Activity

  1. tompollard commented on Dec 1, 2026

    @tompollard
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions