Skip to content

Raise exception when writing structure that exceeds PDB format limits. - #3882

Merged
JoaoRodrigues merged 1 commit into
biopython:masterfrom
JoaoRodrigues:issue_1085
Mar 18, 2022
Merged

JoaoRodrigues merged 1 commit into
biopython:masterfrom
JoaoRodrigues:issue_1085

Conversation

@JoaoRodrigues

Copy link
Copy Markdown
Member
  • I hereby agree to dual licence this and any previous contributions under both
    the Biopython License Agreement AND the BSD 3-Clause License.

  • I have read the CONTRIBUTING.rst file, have run pre-commit
    locally, and understand that continuous integration checks will be used to
    confirm the Biopython unit tests and style checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

Closes #1085

@codecov

codecov Bot commented Mar 17, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #3882 (df103c9) into master (be85e25) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #3882   +/-   ##
=======================================
  Coverage   78.83%   78.83%           
=======================================
  Files         302      302           
  Lines       51934    51942    +8     
=======================================
+ Hits        40941    40950    +9     
+ Misses      10993    10992    -1     
Impacted Files Coverage Δ
Bio/PDB/PDBIO.py 84.27% <100.00%> (+1.49%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be85e25...df103c9. Read the comment docs.

@peterjc peterjc left a comment

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.

Looks good to me - I expect there is good reason to move the chain ID ValueError check?

@JoaoRodrigues

Copy link
Copy Markdown
Member Author

Performance: no need to do the check at every atom - once per chain will do.

Thanks!

@JoaoRodrigues
JoaoRodrigues merged commit 63b1032 into biopython:master Mar 18, 2022
@JoaoRodrigues
JoaoRodrigues deleted the issue_1085 branch March 18, 2022 18:25
@rob-miller rob-miller mentioned this pull request Apr 8, 2022
3 tasks done
JoaoRodrigues added a commit to JoaoRodrigues/biopython that referenced this pull request Apr 25, 2022
JoaoRodrigues added a commit to cbalbin-bio/biopython that referenced this pull request Aug 7, 2022
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.

Prevent PDBIO from writing large structures not supported in PDB format

2 participants