Skip to content

increase delay time without API key to 0.37 - #1869

Merged
peterjc merged 1 commit into
biopython:masterfrom
hsiaoyi0504:increase_delay_time
Dec 6, 2018
Merged

peterjc merged 1 commit into
biopython:masterfrom
hsiaoyi0504:increase_delay_time

Conversation

@hsiaoyi0504

@hsiaoyi0504 hsiaoyi0504 commented Dec 5, 2018 •

Copy link
Copy Markdown
Contributor

To fix issue #1867.

This pull request addresses issue #...

  • 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 and understand that AppVeyor and
    TravisCI will be used to confirm the Biopython unit tests and flake8 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.)

Comment thread Bio/Entrez/__init__.py
params = _construct_params(params)
options = _encode_options(ecitmatch, params)
delay = 0.1 if api_key else 0.333333334
delay = 0.1 if api_key else 0.37

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.

Can you add a comment like this here:

# Using just 0.333333334 seconds sometimes hit the NCBI rate limit,
# the slightly longer pause of 0.37 seconds has been more reliable.

Otherwise the value of 0.37 is confusing and given the code comments earlier looks like a typo.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 9d39b27

@peterjc

peterjc commented Dec 5, 2018

Copy link
Copy Markdown
Member

You didn't agree to the licensing terms - we will not merge you pull request without this. Also do you want to be listed as a contributor? You can read the template again at https://github.com/biopython/biopython/blob/master/.github/PULL_REQUEST_TEMPLATE.md

Note that in this case this is an online test, so currently we are not running it on TravisCI or AppVeyor - so only the Python style checks would be run automatically.

@hsiaoyi0504

Copy link
Copy Markdown
Contributor Author

Got it. I will update the PR then.

@codecov

codecov Bot commented Dec 6, 2018

Copy link
Copy Markdown

Codecov Report

Merging #1869 into master will increase coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1869      +/-   ##
==========================================
+ Coverage   85.47%   85.48%   +<.01%     
==========================================
  Files         302      302              
  Lines       49425    49425              
==========================================
+ Hits        42248    42249       +1     
+ Misses       7177     7176       -1
Impacted Files Coverage Δ
Bio/Entrez/__init__.py 49.62% <0%> (ø) ⬆️
Bio/File.py 87.27% <0%> (+0.25%) ⬆️

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 703ec76...9d39b27. Read the comment docs.

1 similar comment
@codecov

codecov Bot commented Dec 6, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #1869 into master will increase coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1869      +/-   ##
==========================================
+ Coverage   85.47%   85.48%   +<.01%     
==========================================
  Files         302      302              
  Lines       49425    49425              
==========================================
+ Hits        42248    42249       +1     
+ Misses       7177     7176       -1
Impacted Files Coverage Δ
Bio/Entrez/__init__.py 49.62% <0%> (ø) ⬆️
Bio/File.py 87.27% <0%> (+0.25%) ⬆️

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 703ec76...9d39b27. Read the comment docs.

@hsiaoyi0504

Copy link
Copy Markdown
Contributor Author

I have updated the PR and accepted the license terms. Thanks !

@peterjc
peterjc merged commit b1e33b9 into biopython:master Dec 6, 2018
@peterjc

peterjc commented Dec 6, 2018

Copy link
Copy Markdown
Member

Lovely, thank you!

@hsiaoyi0504
hsiaoyi0504 deleted the increase_delay_time branch December 6, 2018 14:50
peterjc added a commit to peterjc/biopython that referenced this pull request Jul 30, 2020
peterjc added a commit to peterjc/biopython that referenced this pull request Jul 30, 2020
peterjc added a commit that referenced this pull request Aug 23, 2020
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
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.

2 participants