Skip to content

Type parsed record-line metadata - #761

Merged
tompollard merged 1 commit into
mainfrom
type-parsed-record-fields
Nov 28, 2026
Merged

tompollard merged 1 commit into
mainfrom
type-parsed-record-fields

Conversation

@tompollard

Copy link
Copy Markdown
Member

Summary

Store the parsed record line in a private frozen _ParsedRecordLine instead of a mutable dictionary. This completes the typed source-header fields for record, signal, and segment lines, and moves #743 and #749 forward without changing the public Record or MultiRecord interface.

The read paths now use dataclasses.replace when inferring a missing signal length. I also removed the redundant parsed base_datetime value; public records still derive it from base_time and base_date. A regression test covers headers with a base time both with and without a date.

Checks

  • Offline suite: 920 passed, 4 skipped, 21 deselected.
  • Sphinx HTML build with warnings as errors passed.
  • Ruff format and lint passed.
  • git diff --check passed.

@tompollard
tompollard merged commit f078f82 into main Nov 28, 2026
19 checks passed
@tompollard
tompollard deleted the type-parsed-record-fields branch November 28, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant