Skip to content

Commit

Permalink
Skip inner tqdm
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaris committed Dec 14, 2023
1 parent 5427359 commit ca4bc05
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions indra/literature/pubmed_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,9 +985,7 @@ def generate_retractions_file(xml_path: str):
):
xml_str = gzip.open(xml_file).read()
tree = ET.XML(xml_str, parser=UTB())
for article in tqdm.tqdm(
tree.findall('.//PubmedArticle'), unit_scale=True, unit='article'
):
for article in tree.findall('.//PubmedArticle'):
pub_types = get_publication_types(article)
if 'Retraction' in pub_types:
pmid = int(article.find('.//PMID').text)
Expand Down

0 comments on commit ca4bc05

Please sign in to comment.