Skip to content

Specify round-trip behavior for reading and writing records #747

Backlog

Description

@tompollard

Problem

rdsamp() returns an array and a small metadata dictionary, while wrsamp() accepts a different subset of fields. Record.wrsamp() can write a read record, but saving it under a new name requires editing both record_name and signal file_name values. The exact round-trip promise for supported formats, multi-segment records, archives, and cloud destinations needs to be stated.

Decisions to make

  • What should a read-object-to-write operation preserve: values, metadata, file layout, or exact bytes?
  • How should the destination name and signal filenames be chosen without mutating the source object?
  • Which record forms and formats can be written back, and how should unsupported cases fail?
  • How should source-file skew and already-aligned in-memory arrays be represented so a write does not apply skew twice?

Related: #500 (isomorphic read/write API), #484 (rdsamp/wrsamp mismatch), #672 (new public names), and the design review on #417.

Activity

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