From a5238b27aee1b0fe831d1a6492b06690e4ce1272 Mon Sep 17 00:00:00 2001 From: caufieldjh Date: Thu, 10 Oct 2024 16:58:06 -0400 Subject: [PATCH] Linting --- src/ontogpt/clients/pubmed_client.py | 4 +--- src/ontogpt/evaluation/ctd/eval_ctd.py | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ontogpt/clients/pubmed_client.py b/src/ontogpt/clients/pubmed_client.py index 0a5387b30..21e48e89f 100644 --- a/src/ontogpt/clients/pubmed_client.py +++ b/src/ontogpt/clients/pubmed_client.py @@ -346,9 +346,7 @@ def text( if self.max_text_length > 0: if len(doc) > self.max_text_length and not raw: charnum = str(self.max_text_length) - logging.warning( - f'Truncating entry beginning "{doc[:50]}" to {charnum} chars' - ) + logging.warning(f'Truncating entry beginning "{doc[:50]}" to {charnum} chars') shortdoc = doc[0 : self.max_text_length] txt.append(shortdoc) else: diff --git a/src/ontogpt/evaluation/ctd/eval_ctd.py b/src/ontogpt/evaluation/ctd/eval_ctd.py index 76878c622..100c9ff5e 100644 --- a/src/ontogpt/evaluation/ctd/eval_ctd.py +++ b/src/ontogpt/evaluation/ctd/eval_ctd.py @@ -19,6 +19,7 @@ This evaluation does not account for these oddities. """ + import gzip import logging from collections import defaultdict