Skip to content

Commit

Permalink
Go back to string edge IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
amykglen committed Oct 9, 2024
1 parent 940edf8 commit 4331e9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/app/plover.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ def build_indexes(self):

# Create basic edge lookup map
logging.info(f"Loading edge lookup map..")
# We'll use simple integers for edge IDs, since edge IDs don't matter in TRAPI
self.edge_lookup_map = {index: edge for index, edge in enumerate(edges)}
self.edge_lookup_map = {str(edge["id"]): edge for edge in edges}
for edge in self.edge_lookup_map.values():
del edge["id"] # Don't need this anymore since it's now the key
gc.collect() # Make sure we free up any memory we can
Expand Down

0 comments on commit 4331e9b

Please sign in to comment.