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
{{ message }}
Repository navigation
Make read (rdrecord, rdsamp) and write (wrsamp) functions isomorphic #500
As noted in #484 , rdsamp and wrsamp are not isomorphic. It is reasonable to expect that what gets read into memory should be sufficient and by default re-create the read file when passing that information to a write function.
We should provide a set of isomorphic read and write functions by doing at least one of these:
Making rdsamp and wrsamp isomorphic. Currently they only handle a subset of the parameters in a record object though.
Adding a write function which can use all of the information from rdrecord to re-create a read record.
Closing this because we now have the read/write workflow requested in option 2. Since v5.11.0, read_record returns a loaded Record that write_record can write to a new path. For a selected signal view, read_signals(...).write(path) provides the same workflow. Digital values round-trip in the same format; physical values may change slightly through quantization. These APIs preserve the logical data and selected metadata, not identical file bytes or the source layout. write_record does not yet accept an uncombined MultiRecord; that separate segment-model work remains tracked in #746 and #402. The legacy rdsamp and wrsamp signatures remain unchanged.
Activity
Do not apply skew twice to rewritten records (#677)
Read format 61 signals with smooth_frames=False (#678)
Write selected signal views to a destination path (#776)
Add write_record for single-segment records (#785)
Clarify explicit remote paths and read/write round trips (#819)
tompollard commentedon Dec 1, 2026
Closing this because we now have the read/write workflow requested in option 2. Since v5.11.0, read_record returns a loaded Record that write_record can write to a new path. For a selected signal view, read_signals(...).write(path) provides the same workflow. Digital values round-trip in the same format; physical values may change slightly through quantization. These APIs preserve the logical data and selected metadata, not identical file bytes or the source layout. write_record does not yet accept an uncombined MultiRecord; that separate segment-model work remains tracked in #746 and #402. The legacy rdsamp and wrsamp signatures remain unchanged.