Skip to content

Commit

Permalink
fix caching ground truth
Browse files Browse the repository at this point in the history
  • Loading branch information
ziao-guo committed Jun 20, 2024
1 parent 802abd2 commit 2dc7d29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pygmtools/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ def get_data(self, ids, test=False, shuffle=True):
for pair in id_combination:
id_pair = (ids[pair[0]], ids[pair[1]])
gt_path = os.path.join(self.gt_cache_path, str(id_pair) + '.npy')
if not os.path.exists(gt_path):
np.save(gt_path, perm_mat_dict[pair])
np.save(gt_path, perm_mat_dict[pair])

if not test:
return data_list, perm_mat_dict, ids
Expand Down

0 comments on commit 2dc7d29

Please sign in to comment.