Skip to content

datasets: implement a fallback URL mechanism. - #75

Open
ilia-kats wants to merge 7 commits into
mainfrom
datasets_improvements
Open

datasets: implement a fallback URL mechanism.#75
ilia-kats wants to merge 7 commits into
mainfrom
datasets_improvements

Conversation

@ilia-kats

Copy link
Copy Markdown
Collaborator

This is apparently being used in the wild with workarounds, so we should provide it here.

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.15385% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 92.77%. Comparing base (de3484b) to head (d17a57a).

Files with missing lines Patch % Lines
src/scverse_misc/datasets/_fetcher.py 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #75      +/-   ##
==========================================
+ Coverage   92.63%   92.77%   +0.13%     
==========================================
  Files          11       11              
  Lines         584      609      +25     
==========================================
+ Hits          541      565      +24     
- Misses         43       44       +1     
Files with missing lines Coverage Δ
src/scverse_misc/datasets/_registry.py 100.00% <100.00%> (ø)
src/scverse_misc/datasets/_fetcher.py 98.24% <93.75%> (-1.76%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- get rid of the Sphinx warnings
- more explicit docstrings
@ilia-kats
ilia-kats force-pushed the datasets_improvements branch from 0cbb40c to 0078634 Compare August 21, 2026 13:31
Comment thread src/scverse_misc/datasets/_fetcher.py Outdated
Comment on lines +117 to +118
for fallback in file.fallback_urls:
return download(replace(file, url=fallback, fallback_urls=None), dest=dest, processor=processor)

@flying-sheep flying-sheep Aug 21, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That doesn’t make sense to me, either the return or an exception will end this loop immediately.

I think having one fallback_url per file is enough anyway, the only reason SnapATAC2 had a dict is because it needed to be specified in metadata

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Just realized this as well a moment ago.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

should be fixed now.

Comment thread src/scverse_misc/datasets/_registry.py Outdated
@ilia-kats
ilia-kats requested a review from flying-sheep August 21, 2026 13: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.

2 participants