Skip to content

Commit

Permalink
Update icd11.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jan 9, 2025
1 parent decc560 commit 86e8399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pyobo/sources/icd11.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from tqdm.auto import tqdm

from ..icd_utils import (
from .icd_utils import (
ICD11_TOP_LEVEL_URL,
ICDError,
get_child_identifiers,
Expand Down Expand Up @@ -51,6 +51,7 @@ def iterate_icd11() -> Iterable[Term]:
version = res_json["releaseId"]
mms_directory = prefix_directory_join(PREFIX, "mms", version=version)
terms = list(iterate_icd11_helper(res_json, version))
# this takes a bit more than 2 hours
for term in tqdm(terms, desc="Getting MMS", unit_scale=True):
path = mms_directory.joinpath(term.identifier).with_suffix(".json")
if path.exists():
Expand Down

0 comments on commit 86e8399

Please sign in to comment.