Skip to content

Commit

Permalink
removed time delay in OrthoInspectorOrthologMapper.get_database_organ…
Browse files Browse the repository at this point in the history
…isms()
  • Loading branch information
GuyTeichman committed Nov 15, 2023
1 parent f72ad4a commit 3017c84
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rnalysis/utils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1363,8 +1363,6 @@ def get_database_organisms(session: requests.Session = None):
databases = OrthoInspectorOrthologMapper.get_databases(session)
db_organisms = {}
for i, database in enumerate(databases):
if i > 0:
time.sleep(6) # wait 6 seconds between requests to avoid rate limiting
url = f'{OrthoInspectorOrthologMapper.API_URL}/{database}/species'
req = session.get(url)
req.raise_for_status()
Expand Down

0 comments on commit 3017c84

Please sign in to comment.