Skip to content

Commit

Permalink
fixed biolink version check #2380
Browse files Browse the repository at this point in the history
  • Loading branch information
sundareswarpullela committed Sep 20, 2024
1 parent 1a2f8ed commit 2824763
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/kg2c/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ def check_kg2pre_tsvs_version(kg2pre_version: str, biolink_version: Optional[str
biolink_build_node_id = "biolink_download_source:"
if biolink_build_node_id in nodes_df.index:
biolink_build_node = nodes_df.loc[biolink_build_node_id]
biolink_build_node_version = biolink_build_node["iri"].split("/")[-4].replace("v", "")

biolink_build_node_version = biolink_build_node["name"].split(" ")[1].replace("v", "")
if biolink_build_node_version == biolink_version:
logging.info(f"Confirmed that the version on the Biolink node in the local KG2pre TSVs matches "
f"the requested Biolink version ({biolink_version}).")
Expand Down

0 comments on commit 2824763

Please sign in to comment.