From bb33dd14a5f93e4b3d1bdd3dab20e38378408f3c Mon Sep 17 00:00:00 2001 From: Evan Morris Date: Thu, 19 Dec 2024 14:20:37 -0500 Subject: [PATCH] fixing where this comment is --- Common/kgx_file_normalizer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Common/kgx_file_normalizer.py b/Common/kgx_file_normalizer.py index d0354c3..6c06c43 100644 --- a/Common/kgx_file_normalizer.py +++ b/Common/kgx_file_normalizer.py @@ -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)