Skip to content

Commit

Permalink
fixing where this comment is
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDietzMorris committed Dec 19, 2024
1 parent c840af7 commit bb33dd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Common/kgx_file_normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,11 @@ def normalize_edge_file(self):
if normalized_edge_properties:
normalized_edge.update(normalized_edge_properties)

# if normalization switched the direction of the predicate, swap the nodes
normalized_edge[SUBJECT_ID] = norm_subject_id
normalized_edge[OBJECT_ID] = norm_object_id

# if normalization switched the direction of the predicate,
# invert the entire edge
if edge_inverted_by_normalization:
normalized_edge = invert_edge(normalized_edge)

Expand Down

0 comments on commit bb33dd1

Please sign in to comment.