Skip to content

Fix PDBList URL construction for non-RCSB Mirrors#5157

Open
kirandharmar867-maker wants to merge 1 commit intobiopython:masterfrom
kirandharmar867-maker:fix-pdblist-server-paths
Open

Fix PDBList URL construction for non-RCSB Mirrors#5157
kirandharmar867-maker wants to merge 1 commit intobiopython:masterfrom
kirandharmar867-maker:fix-pdblist-server-paths

Conversation

@kirandharmar867-maker
Copy link
Contributor

Summary:
This PR fixes URL Construction in PDBList so it works correctly With non-RCSB PDB mirrors.

What was changed :

Updated the default PDB_Server To include the /pub/pdb prefix.
removed Hardcoded /pub/pdb Segments From all constructed URLs, Making them relative to PDB_server.

Why This needed :
Some PDB mirrors (ex: EBl) use a Different Directory layout and do not work With hardcoded /pub/pdb paths.
by moving the prefix into the server root, PDBList now works consistently across Mrirors.

issue reference:
Fixes #3987

Scope:
this PR is only addresses URL Path construction as described in the issue.

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.41%. Comparing base (f948a55) to head (5ff6422).

Files with missing lines Patch % Lines
Bio/PDB/PDBList.py 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5157      +/-   ##
==========================================
+ Coverage   85.51%   86.41%   +0.89%     
==========================================
  Files         282      282              
  Lines       59480    59480              
==========================================
+ Hits        50867    51400     +533     
+ Misses       8613     8080     -533     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Fix PDBList access to servers other than RCSB

1 participant