Skip to content

Commit

Permalink
fix descendant -> ancestor var name in key_ancestors_by_entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Hegeman committed Nov 15, 2023
1 parent 6c64e68 commit 89e2e5e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,11 +474,11 @@ def key_ancestors_by_entity(entity_names: List[str], graph: AGraph) -> Dict[str,

ancestors_by_entity = {}
for entity_name in entity_names:
descendants = set() # type: ignore
build_ancestor_set(entity_name, graph, descendants) # type: ignore
ancestors = set() # type: ignore
build_ancestor_set(entity_name, graph, ancestors) # type: ignore

sanitized_entity_name = reformat_ontology_term_id(entity_name, to_writable=True)
sanitized_ancestors = [reformat_ontology_term_id(descendant, to_writable=True) for descendant in descendants]
sanitized_ancestors = [reformat_ontology_term_id(ancestor, to_writable=True) for ancestor in ancestors]

ancestors_by_entity[sanitized_entity_name] = sanitized_ancestors

Expand Down

0 comments on commit 89e2e5e

Please sign in to comment.