Skip to content

Refactor ensmbl_to_symbol to reuse _download#297

Merged
PauBadiaM merged 1 commit into
mainfrom
refactor/ensmbl-to-symbol-download
Apr 6, 2026
Merged

Refactor ensmbl_to_symbol to reuse _download#297
PauBadiaM merged 1 commit into
mainfrom
refactor/ensmbl-to-symbol-download

Conversation

@PauBadiaM

Copy link
Copy Markdown
Collaborator

Summary

  • Replaces raw requests.get calls in ds.ensmbl_to_symbol with the centralized _download function (retries, progress bars, streaming)
  • Fixes mirror fallback to actually switch between Ensembl mirrors (www, useast, uswest, asia)
  • Adds robustness against empty/invalid BioMart responses by validating the parsed DataFrame before returning

Test plan

  • pytest tests/ds/test_utils.py passes consistently (5/5 runs)

🤖 Generated with Claude Code

Replaces raw requests.get calls with the centralized _download function
which handles retries, progress bars, and streaming. Also fixes the
mirror fallback to actually switch between Ensembl mirrors (www, useast,
uswest, asia) and adds robustness against empty/invalid responses.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@PauBadiaM PauBadiaM merged commit 539b787 into main Apr 6, 2026
11 of 16 checks passed
@PauBadiaM PauBadiaM deleted the refactor/ensmbl-to-symbol-download branch April 6, 2026 18:59
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