Repository navigation
Update Residue.py - #1227
Update Residue.py#1227
Conversation
get_atoms method seems more in touch with the methods used for chain, model and structure.
|
You can't just remove an old API like that, it would break any script using the old function name. We'd have to have both in parallel for a while and deprecate the old name. However, there was talk of deprecating all the PDB module's |
|
While I fully agree with Peter's first sentence, this seems more of a typo
than anything else actually. I *never* noticed this and I've been using
this module for years.. I'd keep an alias to the function and add the
deprecation warning actually.
|
|
So we're agreed :) - rename it but keep a backward compatible alias with a deprecation warning when used. See also http://biopython.org/wiki/Deprecation_policy |
Codecov Report
@@ Coverage Diff @@
## master #1227 +/- ##
==========================================
+ Coverage 79.56% 79.92% +0.35%
==========================================
Files 323 303 -20
Lines 51675 46156 -5519
==========================================
- Hits 41116 36888 -4228
+ Misses 10559 9268 -1291
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1227 +/- ##
==========================================
- Coverage 79.56% 79.56% -0.01%
==========================================
Files 323 323
Lines 51675 51681 +6
==========================================
+ Hits 41116 41119 +3
- Misses 10559 10562 +3
Continue to review full report at Codecov.
|
|
I added the new method |
|
Looks good to me. Thanks @rodogi for spotting & fixing this. |
|
The change looks great 👍 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 Does this currently get triggered by any of the unit tests? |
|
Thank you guys for your terrific work in biopython.
I don't really know, I'm still a noob to github. |
|
It looks like the old name does get used in This is confirmed in the test suite output on TravisCI where the new deprecation warning appears: So, could you also update Separately this shows the old method was not being deliberately tested in |
| yield a | ||
|
|
||
| def get_atom(self): | ||
| warnings.warn("`get_atom` has been depcreated and we intend to remove it" |
There was a problem hiding this comment.
Typo: depcreated --> deprecated
|
@rodogi How would you like to be named in the You can add yourself to these files as part of the pull request if you like - note the names are sorted alphabetically and for |
|
@peterjc, I'll be glad to update test_PDB.py soon with the new method. I added my real name to |
|
Thank you 👍 |
|
@peterjc Yes I agree to dual licence my contributions under both the Biopython License Agreement AND the BSD 3-Clause License. |
|
@rodogi Thank you 👍 |
Squashed commit of pull request biopython#1227.
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Fábio Madeira (@biomadeira) biopython#898 (comment) - Brian Osborne (@bosborne) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - João Rodrigues (@JoaoRodrigues) biopython#898 (comment) - Joe Greener (@jgreener64) biopython#1393 - Joerg Schaarschmidt (@schaarj) biopython#1567 - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Rodrigo Dorantes-Gilardi (@rodogi) biopython#1227 (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) - Fábio Madeira (@biomadeira) #898 (comment) - Brian Osborne (@bosborne) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - João Rodrigues (@JoaoRodrigues) #898 (comment) - Joe Greener (@jgreener64) #1393 - Joerg Schaarschmidt (@schaarj) #1567 - @morrme #1172 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Rodrigo Dorantes-Gilardi (@rodogi) #1227 (comment) - Sergio Valqui (@svalqui) #1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
get_atoms method seems more in touch with the methods used for chain, model and structure.