Skip to content
Merged

#500 #501

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions process/kg2pre_to_kg2c_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def process_nodes(conn, nodes_input_file, nodes_output_file):

# If this node curie matches the preferred curie and the node didn't already have a description, save the KG2pre description
if DESCRIPTION_KEY not in kg2c_nodes[preferred_node_curie] and _is_str_none_or_empty(preferred_node_description):
if preferred_node_curie == node_curie and not _is_str_none_or_empty(preferred_node_description):
if preferred_node_curie == node_curie and not _is_str_none_or_empty(node_description):
preferred_node_dict[DESCRIPTION_KEY] = node_description

continue # Then move to next loop, since we already have the rest of the data
Expand Down Expand Up @@ -193,4 +193,4 @@ def main(nodes_file: str,
print("Ending time:", date())

if __name__ == "__main__":
main(**kg2_util.namespace_to_dict(_get_args()))
main(**kg2_util.namespace_to_dict(_get_args()))
Loading