Skip to content

Commit 2dc7d29

Browse files
committed
fix caching ground truth
1 parent 802abd2 commit 2dc7d29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pygmtools/benchmark.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ def get_data(self, ids, test=False, shuffle=True):
187187
for pair in id_combination:
188188
id_pair = (ids[pair[0]], ids[pair[1]])
189189
gt_path = os.path.join(self.gt_cache_path, str(id_pair) + '.npy')
190-
if not os.path.exists(gt_path):
191-
np.save(gt_path, perm_mat_dict[pair])
190+
np.save(gt_path, perm_mat_dict[pair])
192191

193192
if not test:
194193
return data_list, perm_mat_dict, ids

0 commit comments

Comments
 (0)