Repository navigation
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1697 +/- ##
=========================================
+ Coverage 85.57% 85.6% +0.03%
=========================================
Files 327 331 +4
Lines 50056 50092 +36
=========================================
+ Hits 42833 42879 +46
+ Misses 7223 7213 -10
Continue to review full report at Codecov.
|
|
Accepting a set seems like a bad idea to me in that you have no control over the order the records will be requested in. Does this not matter in your use case? Should we sort the set entries for reproducibility? Separately, could you add a test for this (maybe modify one of the existing tests using a list to use a set instead)? Note that TravisCI/AppVeyor are setup to skip the online only tests, so will not be checking your work here. |
|
I'm OK with this, but we could generalize it further, as in try:
ids = ",".join(ids)
except TypeError:
if isinstance(ids, int):
ids = str(ids) |
|
I'm happy - over to @mdehoon P.S. @austinv11 are you happy to be named in |
|
Sure I would be happy to be named in the |
|
@austinv11 We still need to raise an exception if ids is not an int. |
|
@mdehoon So do you want me to convert strings to ints and back to strings again to ensure that they are ints? |
|
@austinv11 No, but in the section try:
ids = variables["id"]
except KeyError:
pass
else:
try:
ids = ",".join(ids)
except TypeError:
if isinstance(ids, int):
ids = str(ids)we need an try:
ids = variables["id"]
except KeyError:
pass
else:
try:
ids = ",".join(ids)
except TypeError:
if isinstance(ids, int):
ids = str(ids)
else:
# raise an exception |
|
@mdehoon I have made the requested changes |
|
@mdehoon are you happy so merge this? Does it need anything in the docstring about the lack of any explicit set-order and thus the results order? |
|
I'll rebase this and merge it outside of GitHub (can't update this branch). |
Previous commits from pull request #1697.
|
Changes applied, thank you! |
Original author Jeffrey Chang, named copyright holders, and other contributors tracked with version control have all agreed: - Andrew Dalke (@adalke) http://mailman.open-bio.org/pipermail/biopython-dev/2013-August/019941.html - Austin Varela (@austinv11) biopython#1697 - Carlos Pena (@carlosp420) biopython#898 (comment) - chrismit (@Chris7) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor T. Skennerton (@ctSkennerton) biopython#898 (comment) - Edward Liaw (@edliaw) biopython#898 (comment) - Eric Rasche (@erasche) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Francisco Pina-Martins (@StuntsPT) biopython#583 (comment) - Jacek Śmietański (@dadoskawina) biopython#898 (comment) - jchang (@jefftc) biopython#898 (comment) - João D Ferreira (@jdferreira) biopython#898 (comment) - Mark Amery (@ExplodingCabbage) biopython#2165 - Markus Piotrowski (@MarkusPiotrowski) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergei Lebedev (@superbobry) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Sujan Dulal (@Dsujan) biopython#2430 - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Yi Hsiao (@hsiaoyi0504) biopython#1869
Original author Jeffrey Chang, named copyright holders, and other contributors tracked with version control have all agreed: - Andrew Dalke (@adalke) http://mailman.open-bio.org/pipermail/biopython-dev/2013-August/019941.html - Austin Varela (@austinv11) biopython#1697 - Carlos Pena (@carlosp420) biopython#898 (comment) - chrismit (@Chris7) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor T. Skennerton (@ctSkennerton) biopython#898 (comment) - Edward Liaw (@edliaw) biopython#898 (comment) - Eric Rasche (@erasche) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Francisco Pina-Martins (@StuntsPT) biopython#583 (comment) - Jacek Śmietański (@dadoskawina) biopython#898 (comment) - jchang (@jefftc) biopython#898 (comment) - João D Ferreira (@jdferreira) biopython#898 (comment) - Mark Amery (@ExplodingCabbage) biopython#2165 - Markus Piotrowski (@MarkusPiotrowski) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergei Lebedev (@superbobry) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Sujan Dulal (@Dsujan) biopython#2430 - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Yi Hsiao (@hsiaoyi0504) biopython#1869
Original author Jeffrey Chang, named copyright holders, and other contributors tracked with version control have all agreed: - Andrew Dalke (@adalke) http://mailman.open-bio.org/pipermail/biopython-dev/2013-August/019941.html - Austin Varela (@austinv11) #1697 - Carlos Pena (@carlosp420) #898 (comment) - chrismit (@Chris7) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Connor T. Skennerton (@ctSkennerton) #898 (comment) - Edward Liaw (@edliaw) #898 (comment) - Eric Rasche (@erasche) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Francisco Pina-Martins (@StuntsPT) #583 (comment) - Jacek Śmietański (@dadoskawina) #898 (comment) - jchang (@jefftc) #898 (comment) - João D Ferreira (@jdferreira) #898 (comment) - Mark Amery (@ExplodingCabbage) #2165 - Markus Piotrowski (@MarkusPiotrowski) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergei Lebedev (@superbobry) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Sujan Dulal (@Dsujan) #2430 - Travis Wrightsman (@twrightsman) #898 (comment) - Yi Hsiao (@hsiaoyi0504) #1869
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.)