Repository navigation
Fix error with PDB icodes in Bio.PDB.Dice - #1054
Conversation
| if icode != " ": | ||
| warnings.warn("WARNING: Icode at %s" % residue.get_id(), | ||
| RuntimeWarning) | ||
| warnings.warn("WARNING: Icode %s at position %s" \ |
There was a problem hiding this comment.
You don't need the trailing slash here, the brackets are enough to tell Python it is multi-line.
| warnings.warn("WARNING: Icode at %s" % residue.get_id(), | ||
| RuntimeWarning) | ||
| warnings.warn("WARNING: Icode %s at position %s" \ | ||
| % (icode, resseq), RuntimeWarning) |
There was a problem hiding this comment.
Perhaps this should be BiopythonWarning? You'd need to add this at the top of the file:
from Bio import BiopythonWarning|
I'm made some small comment on the proposed change. Are you happy to dual licence your contributions under both the Biopython License Agreement AND the BSD 3-Clause License? See #898. Also, are you happy to be thanked by name in the |
Codecov Report@@ Coverage Diff @@
## master #1054 +/- ##
==========================================
+ Coverage 80.53% 80.53% +<.01%
==========================================
Files 320 320
Lines 49002 49003 +1
==========================================
+ Hits 39462 39465 +3
+ Misses 9540 9538 -2
Continue to review full report at Codecov.
|
|
Hi! Best |
|
That looks good, thank you! |
See preceeding commits from PR biopython#1054 which closes biopython#1053.
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Brian Osborne (@bosborne) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - João Rodrigues (@JoaoRodrigues) biopython#898 (comment) - Leonhard Heizinger (@he-leon) biopython#1054 (comment) - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Brian Osborne (@bosborne) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Connor McCoy (@cmccoy) #898 (comment) - Eric Talevich (@etal) #898 (comment) - João Rodrigues (@JoaoRodrigues) #898 (comment) - Leonhard Heizinger (@he-leon) #1054 (comment) - @morrme #1172 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Possible Fix for Issue #1053
Prints the following warning when an Icode is detected:
/usr/lib/python2.7/site-packages/Bio/PDB/Dice.py:46: RuntimeWarning: WARNING: Icode A at position 15Best
Leonhard