Skip to content

Clarify explicit remote paths and read/write round trips - #819

Merged
tompollard merged 2 commits into
mainfrom
docs-remote-roundtrip
Dec 1, 2026
Merged

tompollard merged 2 commits into
mainfrom
docs-remote-roundtrip

Conversation

@tompollard

Copy link
Copy Markdown
Member

Summary

  • Correct the I/O guide's stale statement that custom servers still need pn_dir; full HTTP URLs now provide an explicit source.
  • Show a read_record → write_record example for a digital record. Explain that this preserves logical data rather than identical file bytes or layout.
  • Explain why the legacy rdsamp fields dictionary cannot be passed directly to wrsamp.

Related to #534, #484, and #500.

Checks

  • Sphinx HTML build with warnings as errors: passed.
  • Record writing tests: 30 passed.

@tompollard tompollard left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. The deprecation wording now matches main (#818 is merged) and the references resolve. The round-trip example runs as written and keeps the digital samples plus fs, names, units, format, gain, baseline, comments and base time identical. The rdsamp/wrsamp explanation is accurate: wrsamp(**fields) fails with unexpected keyword argument 'sig_len'. The strict docs build passes.

One placement issue: the new round-trip section sits between the write_record paragraph and the existing read_record("sample-data/100", start=100, stop=200, kind="digital") example, so that example now reads as if it illustrates the rdsamp/wrsamp paragraph. Moving the new section below that example (or the example up next to its text) would keep each example with its explanation.

@tompollard

Copy link
Copy Markdown
Member Author

Agreed. I moved the existing selected-read example back next to the write_record explanation in 85e74cf. The new round-trip example and its rdsamp/wrsamp note now form a separate block below it. The strict Sphinx build passes.

@tompollard
tompollard merged commit 857bb0a into main Dec 1, 2026
19 checks passed
@tompollard
tompollard deleted the docs-remote-roundtrip branch December 1, 2026 04:42
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