Skip to content
This repository was archived by the owner on Jan 29, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/bluesearch/database/topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ def get_topics_for_arxiv_articles(
ids = list(id_2_path.keys())
article_topics = {}
for i_start in range(0, len(ids), batch_size):
logger.info(
f"Processing batch {i_start//batch_size} out of {len(ids)//batch_size}"
)
# Get a slice of arXiv ids
i_end = i_start + batch_size
id_list = ids[i_start:i_end]
Expand All @@ -368,6 +371,7 @@ def get_topics_for_arxiv_articles(
"id_list": ",".join(id_list),
"max_results": str(batch_size),
}
logger.debug(f"Requesting topic info on arxiv ids: {id_list}")
res = requests.get(base_url, params)
res.raise_for_status()

Expand Down