Skip to content

Commit

Permalink
#321 correctly access nodes in report script
Browse files Browse the repository at this point in the history
  • Loading branch information
ecwood committed Jul 19, 2023
1 parent 598c480 commit 2902afa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions report_stats_on_json_kg.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ def count_orphan_nodes(nodes: list, edges: list):

build_info = dict()

for n in nodes[::-1]: # search for build info node starting at end
for n in nodes: # search for build info node starting at end
if n["id"] == kg2_util.CURIE_PREFIX_RTX + ':' + 'KG2': # should be the first node accessed
build_info = graph.get('build', dict())
build_info = n
nodes.remove(n) # remove it so stats aren't reported
break

Expand Down

0 comments on commit 2902afa

Please sign in to comment.