From ca4bc05d67e39052a206449153ad34c80832f593 Mon Sep 17 00:00:00 2001 From: kkaris Date: Wed, 13 Dec 2023 23:57:12 -0800 Subject: [PATCH] Skip inner tqdm --- indra/literature/pubmed_client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/indra/literature/pubmed_client.py b/indra/literature/pubmed_client.py index 5adddb46f3..ec531b61e9 100644 --- a/indra/literature/pubmed_client.py +++ b/indra/literature/pubmed_client.py @@ -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)