Skip to content

Commit

Permalink
Update umls.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Apr 2, 2024
1 parent 1ff911a commit 8aabf0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pyobo/sources/umls/umls.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import bioregistry
import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm
from umls_downloader import open_umls, open_umls_semantic_types

Expand Down Expand Up @@ -69,7 +68,7 @@ def get_obo() -> Obo:


def get_semantic_types() -> Mapping[str, Set[str]]:
"""Get UMLS"""
"""Get UMLS semantic types for each term."""
dd = defaultdict(set)
with open_umls_semantic_types() as file:
for line in tqdm(file, unit_scale=True):
Expand Down

0 comments on commit 8aabf0d

Please sign in to comment.