@@ -426,7 +426,7 @@ def live_spot_check(report, curie_conn, babel_conn):
426426 """Resolve a fixed list of names through Babel and confirm each
427427 resulting CURIE is present in the NGD DB with a plausible PMID count.
428428 """
429- from stitch_proj .local_babel import map_name_to_curie
429+ from stitch .local_babel import map_name_to_curie
430430
431431 report .header ("Live spot check via Babel resolution" )
432432 ccur = curie_conn .cursor ()
@@ -485,7 +485,7 @@ def enrich_top_curies_with_labels(report, curie_conn, babel_conn, top_n=25):
485485 """Re-run the top-N-by-PMID-count report with labels from Babel so the
486486 opaque UMLS/MeSH codes are human-readable.
487487 """
488- from stitch_proj .local_babel import get_all_names_for_curie
488+ from stitch .local_babel import get_all_names_for_curie
489489
490490 report .header (f"Top { top_n } curies by PMID count (with Babel labels)" )
491491 cur = curie_conn .cursor ()
@@ -528,13 +528,13 @@ def enrich_top_curies_with_labels(report, curie_conn, babel_conn, top_n=25):
528528
529529def _init_trace_worker (babel_db_path , targets ):
530530 global _trace_babel_conn , _trace_targets
531- from stitch_proj .local_babel import connect_to_db_read_only
531+ from stitch .local_babel import connect_to_db_read_only
532532 _trace_babel_conn = connect_to_db_read_only (babel_db_path )
533533 _trace_targets = targets
534534
535535
536536def _trace_one (item ):
537- from stitch_proj .local_babel import map_name_to_curie
537+ from stitch .local_babel import map_name_to_curie
538538 name , pmids_json = item
539539 try :
540540 result = map_name_to_curie (_trace_babel_conn , name )
@@ -1021,14 +1021,14 @@ def _check_environment(args):
10211021 p ("Dependencies:" )
10221022
10231023 try :
1024- from stitch_proj .local_babel import connect_to_db_read_only # noqa: F401
1025- p (" [ OK ] stitch_proj .local_babel" )
1024+ from stitch .local_babel import connect_to_db_read_only # noqa: F401
1025+ p (" [ OK ] stitch .local_babel" )
10261026 except ImportError :
10271027 if args .babel_db :
1028- p (" [FAIL] stitch_proj — not installed (required for --babel-db)" )
1028+ p (" [FAIL] stitch — not installed (required for --babel-db)" )
10291029 ok = False
10301030 else :
1031- p (" [ -- ] stitch_proj — not installed (not needed without --babel-db)" )
1031+ p (" [ -- ] stitch — not installed (not needed without --babel-db)" )
10321032
10331033 # Summary
10341034 p ("" )
@@ -1115,7 +1115,7 @@ def main():
11151115 report .fail ("babel db" , f"not found: { args .babel_db } " )
11161116 else :
11171117 try :
1118- from stitch_proj .local_babel import connect_to_db_read_only
1118+ from stitch .local_babel import connect_to_db_read_only
11191119 babel_conn = connect_to_db_read_only (args .babel_db )
11201120 except Exception as e :
11211121 report .fail ("babel db connect" , str (e ))
0 commit comments