Repository navigation
Changed multi-align assert statements to exceptions in Bio/AlignIO - #1613
Conversation
| print("%s %i" % (m, len(m))) | ||
| print(handle.name) | ||
| raise err | ||
| raise ValueError("Darn... amino acids vs nucleotide coordinates?") |
There was a problem hiding this comment.
Since you are working on this bit of code, could you move the information in the above debugging print statements into the exception message?
There was a problem hiding this comment.
Yes, definitely. I was going to ask about this. I'll add a commit that changes this.
|
Other than one exception which could include the debug print statements above it, this looks good. Thank you. Would you also like to add yourself to the TravisCI is failing in the style checks for Update: That should be fixed with bcca127 |
Codecov Report
@@ Coverage Diff @@
## master #1613 +/- ##
=========================================
+ Coverage 83.77% 85.4% +1.63%
=========================================
Files 326 327 +1
Lines 49466 49673 +207
=========================================
+ Hits 41439 42425 +986
+ Misses 8027 7248 -779
Continue to review full report at Codecov.
|
|
Okay, added the debug print statements to the exception message. I plan on working more on issue #1515, so I'll add myself to |
|
Thank you! |
Closes issue biopython#1879, part of biopython#898. The original author Jeff Chang and contributors since as recorded in version control have agreed: - Fábio Madeira (@biomadeira) biopython#898 (comment) - Benjamin Vaisvil (@bvaisvil) biopython#1613 - Carlos Pena (@carlosp420) biopython#898 (comment) - Chang Soon Ong (@chengsoonong) biopython#1879 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Christiam Camacho (@christiam) biopython#898 (comment) - Christopher Jenness (@christopherjenness) biopython#1535 - Iddo Friedberg (@idoerg) biopython#898 (comment) - Jeff Chang (@jefftc) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - Jay Bird (@mxposed) biopython#1470 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Nick Semenkovich (@semenko) biopython#898 (comment) - Sjoerd de Vries biopython#1879 (comment) - Soroush Saffari (@sorsaffari) biopython#1819 - Suresh Panneerselvam (@Amrithasuresh) biopython#1575 - Vincent Davis (@vincentdavis) biopython#898 (comment) The one exception is Chris Wroe, who we have not been able to contact, but their small contribution from Feb 2004 was later deprecated and removed in 2007.
Closes issue #1879, part of #898. The original author Jeff Chang and contributors since as recorded in version control have agreed: - Fábio Madeira (@biomadeira) #898 (comment) - Benjamin Vaisvil (@bvaisvil) #1613 - Carlos Pena (@carlosp420) #898 (comment) - Chang Soon Ong (@chengsoonong) #1879 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Christiam Camacho (@christiam) #898 (comment) - Christopher Jenness (@christopherjenness) #1535 - Iddo Friedberg (@idoerg) #898 (comment) - Jeff Chang (@jefftc) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - Jay Bird (@mxposed) #1470 (comment) - Peter Cock (@peterjc) #898 (comment) - Nick Semenkovich (@semenko) #898 (comment) - Sjoerd de Vries #1879 (comment) - Soroush Saffari (@sorsaffari) #1819 - Suresh Panneerselvam (@Amrithasuresh) #1575 - Vincent Davis (@vincentdavis) #898 (comment) The one exception is Chris Wroe, who we have not been able to contact, but their small contribution from Feb 2004 was later deprecated and removed in 2007.
Original author Zheng Ruan and contributors tracked by version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Benjamin Vaisvil (@bvaisvil) biopython#1613 - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Juse (@JuseTiZ) biopython#4556 - Michiel de Hoon (@mdehoon) biopython#898 (comment) - Micky Yun Chan (@michiboo) biopython#1983 - @morrme biopython#1172 (comment) - Neil P. (@npars) biopython#3937 - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Sujan Dulal (@Dsujan) biopython#2430 - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Zheng Ruan (@zruan) biopython#898 (comment)
Original author Zheng Ruan and contributors since tracked by version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Alex Jironkin (@alexjironkin) PENDING VIA biopython#765 - Benjamin Vaisvil (@bvaisvil) biopython#1613 - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - Micky Yun Chan (@michiboo) biopython#1983 - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sujan Dulal (@Dsujan) biopython#2430 - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Zheng Ruan (@zruan) biopython#898 (comment)
Original author Zheng Ruan and contributors tracked by version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Benjamin Vaisvil (@bvaisvil) #1613 - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Juse (@JuseTiZ) #4556 - Michiel de Hoon (@mdehoon) #898 (comment) - Micky Yun Chan (@michiboo) #1983 - @morrme #1172 (comment) - Neil P. (@npars) #3937 - Peter Cock (@peterjc) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Sujan Dulal (@Dsujan) #2430 - Travis Wrightsman (@twrightsman) #898 (comment) - Zheng Ruan (@zruan) #898 (comment)
Original author Zheng Ruan and contributors since tracked by version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Alex Jironkin (@alexjironkin) PENDING VIA #765 - Benjamin Vaisvil (@bvaisvil) #1613 - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - Micky Yun Chan (@michiboo) #1983 - @morrme #1172 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Sujan Dulal (@Dsujan) #2430 - Travis Wrightsman (@twrightsman) #898 (comment) - Zheng Ruan (@zruan) #898 (comment)
This pull request addresses issue #1515.
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.rstfile and understand that AppVeyor andTravisCI will be used to confirm the Biopython unit tests and
flake8stylechecks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)