Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Oct 10, 2024
1 parent 21f811d commit a5238b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/ontogpt/clients/pubmed_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/ontogpt/evaluation/ctd/eval_ctd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
This evaluation does not account for these oddities.
"""

import gzip
import logging
from collections import defaultdict
Expand Down

0 comments on commit a5238b2

Please sign in to comment.