Skip to content

Clarify the multi-segment record and flattening model #746

Backlog

Description

@tompollard

Problem

rdrecord() combines a multi-segment record by default and returns a Record; m2s=False preserves a MultiRecord whose segments list contains Record objects or None. Empty segments, variable-layout headers, and metadata available from rdheader() require special handling. A flattened record can carry source_segments, but the public contract for these forms is spread across options and attributes.

Decisions to make

  • What should represent an empty segment, its length, and a variable-layout specification?
  • Which signal metadata should be available from a multi-segment header without loading every segment or sample?
  • How should callers request a combined view versus segment-preserving view, and inspect the source segments of a combined result?
  • Can the logical data interface be independent of single- versus multi-segment storage, while header/layout descriptions retain the format-specific distinction?

Related: #402 (segment representation), #441 (multi-record signal metadata), #442 (multi-segment header reads), #376 (signal return API), and the design review on #417.

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