Repository navigation
Read WFDB archives from remote URIs - #832
Merged
Merged
Conversation
tompollard
commented
Dec 1, 2026
tompollard
left a comment
Member
Author
There was a problem hiding this comment.
Thanks. Remote archive reads match local ones, including from a gzip-capable server (allow_gzip=True), and the legacy rdann, iter_dataframes, read_channel_header and a preserved multi-segment read (segment_views) all work against an HTTP archive too. Remote writes and servers without byte ranges fail clearly. The offline suite, Ruff and the strict docs build pass locally.
Two things I'd change:
- HTTP reads fetch large blocks. The partial-read test uses
memory://. Over HTTP, reading 100 frames from a 16 MB archive fetched 13.25 MB (5 requests), becausefsspec's HTTP file uses 5 MB blocks. Passing a smallerblock_sizeforhttp(s)://opens in_fsspec_openfixes it: 1 MB fetched 2.10 MB, 256 KB fetched 0.53 MB and 64 KB fetched 0.14 MB, all in 5 requests with identical results. Could you set something around 256 KB, and add an HTTP version of the partial-read test that checks the bytes served? - Signed URLs.
docs/io.rst(around line 992) still says HTTP URLs with query strings "are not supported", but this PR reads archives from them (?token=demoin the test). It would be worth saying that query-string URLs work for.wfdbarchives, since they're a single file, but not for multi-file records.
Member
Author
|
Thanks for checking these cases. I addressed both points in 1778fb0.
The full offline suite passes (1,596 passed, 4 skipped), as do Ruff and the strict docs build. |
tompollard
added a commit
that referenced
this pull request
Dec 1, 2026
## Summary - Bump the package version to 5.14.0. - Collect the changelog entries from #832 and #833 into the release notes. This release adds remote `.wfdb` archive reading and clarifies multi-segment read coordinates and provenance. After merging, publish a GitHub release tagged `v5.14.0` to trigger the configured PyPI workflow. ## Verification - Strict Sphinx docs build: passed. - Source distribution and wheel build: passed. - Ruff lint and formatting: passed. - #832 and #833 CI checks: passed before merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.wfdbarchives from HTTP URLs, supported cloud URIs, andphysionet://URIs through the existing seekablefsspecopener.Verification
bxbunavailable), 23 deselected.Tests cover remote record, signal, header, annotation, and multi-segment reads; partial signal reads; HTTP byte ranges; and an HTTP server that does not support ranges.